From b5de0307a7dee13ada0d39c5b2f336f46d77e3fe Mon Sep 17 00:00:00 2001 From: van Hauser Date: Mon, 22 Feb 2021 16:41:49 +0100 Subject: Fixes for afl++ (#5235) * output afl++ setup * update commit id --- infra/base-images/base-builder/Dockerfile | 2 +- infra/base-images/base-runner/run_fuzzer | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) (limited to 'infra/base-images') diff --git a/infra/base-images/base-builder/Dockerfile b/infra/base-images/base-builder/Dockerfile index 4ac72a190..ee966095d 100644 --- a/infra/base-images/base-builder/Dockerfile +++ b/infra/base-images/base-builder/Dockerfile @@ -177,7 +177,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 5dd35f5281afec0955c08fe9f99e3c83222b7764 + git checkout a252943236b12c080248747bee06c9c5084b871e RUN cd $SRC && \ curl -L -O https://github.com/google/honggfuzz/archive/oss-fuzz.tar.gz && \ diff --git a/infra/base-images/base-runner/run_fuzzer b/infra/base-images/base-runner/run_fuzzer index 08f62e7dd..2dd50a85d 100755 --- a/infra/base-images/base-runner/run_fuzzer +++ b/infra/base-images/base-runner/run_fuzzer @@ -119,6 +119,9 @@ if [[ "$FUZZING_ENGINE" = afl ]]; then AFL_FUZZER_ARGS="$AFL_FUZZER_ARGS -t 5000+" # AFL expects at least 1 file in the input dir. echo input > ${CORPUS_DIR}/input + echo afl++ setup: + env|grep AFL_ + cat "$OUT/afl_options.txt" CMD_LINE="$OUT/afl-fuzz $AFL_FUZZER_ARGS -i $CORPUS_DIR -o $FUZZER_OUT $(get_dictionary) $* -- $OUT/$FUZZER" elif [[ "$FUZZING_ENGINE" = honggfuzz ]]; then -- cgit v1.2.3