aboutsummaryrefslogtreecommitdiffhomepage
path: root/infra
diff options
context:
space:
mode:
authorGravatar van Hauser <vh@thc.org>2021-03-09 15:05:13 +0100
committerGravatar GitHub <noreply@github.com>2021-03-09 06:05:13 -0800
commit498b771b729574812e414e9608c71e73ab6aae65 (patch)
tree7d2494770b2ca0fe04558402bc19b22d41014016 /infra
parent2260a5c3b9dd47a51c084cf80cc207534c9169b5 (diff)
fix afl++ asan options (#5336)
Diffstat (limited to 'infra')
-rw-r--r--infra/base-images/base-builder/Dockerfile2
-rwxr-xr-xinfra/base-images/base-builder/debug_afl3
2 files changed, 4 insertions, 1 deletions
diff --git a/infra/base-images/base-builder/Dockerfile b/infra/base-images/base-builder/Dockerfile
index 40fdcfbb..c2f84fda 100644
--- a/infra/base-images/base-builder/Dockerfile
+++ b/infra/base-images/base-builder/Dockerfile
@@ -178,7 +178,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 9b3d8c327d33191b181219ffce411b40bdbe8902
+ git checkout 74a6044b3fba496c1255f9aedbf5b7253ae29f0e
RUN cd $SRC && \
curl -L -O https://github.com/google/honggfuzz/archive/oss-fuzz.tar.gz && \
diff --git a/infra/base-images/base-builder/debug_afl b/infra/base-images/base-builder/debug_afl
index 05b1f64f..e3a761c5 100755
--- a/infra/base-images/base-builder/debug_afl
+++ b/infra/base-images/base-builder/debug_afl
@@ -29,4 +29,7 @@ popd > /dev/null
export ASAN_OPTIONS="detect_leaks=0:symbolize=0:detect_odr_violation=0:abort_on_error=1"
export AFL_MAP_SIZE=4194304
+export AFL_LLVM_LAF_ALL=1
+export AFL_LLVM_CMPLOG=1
+export AFL_LLVM_DICT2FILE=$OUT/afl++.dict
ulimit -c unlimited