Skip to content

Commit

Permalink
Revert "Update afl++ (#7008)" (#7022)
Browse files Browse the repository at this point in the history
This reverts commit 95e437c.
  • Loading branch information
jonathanmetzman committed Dec 16, 2021
1 parent 7dc31b0 commit 6bfab63
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion infra/base-images/base-builder/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ WORKDIR $SRC
# TODO: switch to -b stable once we can.
RUN git clone https://github.com/AFLplusplus/AFLplusplus.git aflplusplus && \
cd aflplusplus && \
git checkout 52dd5d479d411460c8cf2010a89f72e269d799ea
git checkout 5525f8c9ef8bb879dadd0eb942d524827d1b0362

RUN cd $SRC && \
curl -L -O https://github.com/google/honggfuzz/archive/oss-fuzz.tar.gz && \
Expand Down
4 changes: 1 addition & 3 deletions infra/base-images/base-builder/compile_afl
Original file line number Diff line number Diff line change
Expand Up @@ -37,16 +37,14 @@ export ASAN_OPTIONS="detect_leaks=0:symbolize=0:detect_odr_violation=0:abort_on_
# No complain on unknown AFL environment variables
export AFL_IGNORE_UNKNOWN_ENVS=1

# To not use AFL++'s afl-cc compiler but clang sancov, set this to 1:
export AFL_LLVM_MODE_WORKAROUND=0

# To analyze build failures and set specific AFL++ settings, set
# `export AFL_SKIP_OSSFUZZ=1`
# The 'env|grep' setup ensures we do not trigger the linter.
env | egrep -q '^AFL_SKIP_OSSFUZZ=' || {

# The variables need to be set to "1" here - or before running this script.
# AFL++ configuration options.
export AFL_LLVM_MODE_WORKAROUND=0
export AFL_ENABLE_DICTIONARY=0
export AFL_ENABLE_CMPLOG=1
export AFL_LAF_CHANCE=5
Expand Down

0 comments on commit 6bfab63

Please sign in to comment.