Skip to content

Commit

Permalink
bring back small map
Browse files Browse the repository at this point in the history
  • Loading branch information
tokatoka committed Feb 22, 2024
1 parent 42af850 commit e88e347
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,11 @@ RUN cd /libafl && git pull && git checkout 2ea1930dfd109b08e37904d7e99a2f6b39c73
# Compile libafl.
RUN cd /libafl && \
unset CFLAGS CXXFLAGS && \
cd ./fuzzers/fuzzbench_ctx_adaptive && \
export LIBAFL_EDGES_MAP_SIZE=131072 && \
cd ./fuzzers/fuzzbench_ctx && \
PATH="/root/.cargo/bin/:$PATH" cargo build --profile release-fuzzbench --features no_link_main

# Auxiliary weak references.
RUN cd /libafl/fuzzers/fuzzbench_ctx_adaptive && \
RUN cd /libafl/fuzzers/fuzzbench_ctx && \
clang -c stub_rt.c && \
ar r /stub_rt.a stub_rt.o
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@ def prepare_fuzz_environment(input_corpus):

def build(): # pylint: disable=too-many-branches,too-many-statements
"""Build benchmark."""
os.environ["CC"] = ("/libafl/fuzzers/fuzzbench_ctx_adaptive/ \
target/release-fuzzbench/libafl_cc")
os.environ["CXX"] = ("/libafl/fuzzers/fuzzbench_ctx_adaptive/ \
target/release-fuzzbench/libafl_cxx")
os.environ["CC"] = (
"/libafl/fuzzers/fuzzbench_ctx/target/release-fuzzbench/libafl_cc")
os.environ["CXX"] = (
"/libafl/fuzzers/fuzzbench_ctx/target/release-fuzzbench/libafl_cxx")

os.environ["ASAN_OPTIONS"] = "abort_on_error=0:allocator_may_return_null=1"
os.environ["UBSAN_OPTIONS"] = "abort_on_error=0"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,11 @@ RUN cd /libafl && git pull && git checkout 2ea1930dfd109b08e37904d7e99a2f6b39c73
# Compile libafl.
RUN cd /libafl && \
unset CFLAGS CXXFLAGS && \
cd ./fuzzers/fuzzbench_ngram_adaptive && \
export LIBAFL_EDGES_MAP_SIZE=131072 && \
cd ./fuzzers/fuzzbench_ngram && \
PATH="/root/.cargo/bin/:$PATH" cargo build --profile release-fuzzbench --features no_link_main

# Auxiliary weak references.
RUN cd /libafl/fuzzers/fuzzbench_ngram_adaptive && \
RUN cd /libafl/fuzzers/fuzzbench_ngram && \
clang -c stub_rt.c && \
ar r /stub_rt.a stub_rt.o
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@ def prepare_fuzz_environment(input_corpus):

def build(): # pylint: disable=too-many-branches,too-many-statements
"""Build benchmark."""
os.environ["CC"] = ("/libafl/fuzzers/fuzzbench_ngram_adaptive/ \
target/release-fuzzbench/libafl_cc")
os.environ["CXX"] = ("/libafl/fuzzers/fuzzbench_ngram_adaptive/ \
target/release-fuzzbench/libafl_cxx")
os.environ["CC"] = (
"/libafl/fuzzers/fuzzbench_ngram/target/release-fuzzbench/libafl_cc")
os.environ["CXX"] = (
"/libafl/fuzzers/fuzzbench_ngram/target/release-fuzzbench/libafl_cxx")

os.environ["ASAN_OPTIONS"] = "abort_on_error=0:allocator_may_return_null=1"
os.environ["UBSAN_OPTIONS"] = "abort_on_error=0"
Expand Down

0 comments on commit e88e347

Please sign in to comment.