diff options
author | 2021-02-07 18:42:13 +0100 | |
---|---|---|
committer | 2021-02-07 09:42:13 -0800 | |
commit | 458dd61bbbd5664655d6a934d3c7e9eea82d5644 (patch) | |
tree | 54616396bc951c3b8f661e454c62b63a6c46f7fb /projects | |
parent | bae8dd8b5c54f8a3b7a7e43a927f8bd491c5be35 (diff) |
afl++ CMPLOG test (#5130)
* afl++ CMPLOG test
* fixes
Diffstat (limited to 'projects')
-rwxr-xr-x | projects/libavif/build.sh | 6 | ||||
-rwxr-xr-x | projects/libcacard/build.sh | 6 | ||||
-rwxr-xr-x | projects/libxml2/build.sh | 6 | ||||
-rwxr-xr-x | projects/openssl/build.sh | 6 | ||||
-rw-r--r-- | projects/skia/build.sh | 6 | ||||
-rwxr-xr-x | projects/wireshark/build.sh | 6 |
6 files changed, 36 insertions, 0 deletions
diff --git a/projects/libavif/build.sh b/projects/libavif/build.sh index 130709fb..a981fa25 100755 --- a/projects/libavif/build.sh +++ b/projects/libavif/build.sh @@ -15,6 +15,12 @@ # ################################################################################ +# afl++ CMPLOG test: +test "$FUZZING_ENGINE" = "afl" && { + export AFL_LLVM_CMPLOG=1 + touch $OUT/afl_cmplog.txt +} + # build dav1d cd ext && bash dav1d.cmd && cd .. diff --git a/projects/libcacard/build.sh b/projects/libcacard/build.sh index 719502e9..9c0c974d 100755 --- a/projects/libcacard/build.sh +++ b/projects/libcacard/build.sh @@ -15,6 +15,12 @@ # ################################################################################ +# afl++ CMPLOG test: +test "$FUZZING_ENGINE" = "afl" && { + export AFL_LLVM_CMPLOG=1 + touch $OUT/afl_cmplog.txt +} + # Workaround for fixing AFL++ build, discarded for others. # See https://github.com/google/oss-fuzz/issues/4280#issuecomment-773977943 export AFL_LLVM_INSTRUMENT=CLASSIC,NGRAM-4 diff --git a/projects/libxml2/build.sh b/projects/libxml2/build.sh index 4240ba7f..7485bc27 100755 --- a/projects/libxml2/build.sh +++ b/projects/libxml2/build.sh @@ -16,6 +16,12 @@ # ################################################################################ +# afl++ CMPLOG test: +test "$FUZZING_ENGINE" = "afl" && { + export AFL_LLVM_CMPLOG=1 + touch $OUT/afl_cmplog.txt +} + if [ "$SANITIZER" = undefined ]; then export CFLAGS="$CFLAGS -fsanitize=unsigned-integer-overflow -fno-sanitize-recover=unsigned-integer-overflow" export CXXFLAGS="$CXXFLAGS -fsanitize=unsigned-integer-overflow -fno-sanitize-recover=unsigned-integer-overflow" diff --git a/projects/openssl/build.sh b/projects/openssl/build.sh index 14768c97..0832c6ad 100755 --- a/projects/openssl/build.sh +++ b/projects/openssl/build.sh @@ -15,6 +15,12 @@ # ################################################################################ +# afl++ CMPLOG test: +test "$FUZZING_ENGINE" = "afl" && { + export AFL_LLVM_CMPLOG=1 + touch $OUT/afl_cmplog.txt +} + CONFIGURE_FLAGS="" if [[ $CFLAGS = *sanitize=memory* ]] then diff --git a/projects/skia/build.sh b/projects/skia/build.sh index 899bfc53..a8b111d4 100644 --- a/projects/skia/build.sh +++ b/projects/skia/build.sh @@ -15,6 +15,12 @@ # ################################################################################ +# afl++ CMPLOG test: +test "$FUZZING_ENGINE" = "afl" && { + export AFL_LLVM_CMPLOG=1 + touch $OUT/afl_cmplog.txt +} + # Build SwiftShader pushd third_party/externals/swiftshader/ export SWIFTSHADER_INCLUDE_PATH=$PWD/include diff --git a/projects/wireshark/build.sh b/projects/wireshark/build.sh index bdb34eb5..de41e070 100755 --- a/projects/wireshark/build.sh +++ b/projects/wireshark/build.sh @@ -15,6 +15,12 @@ # ################################################################################ +# afl++ CMPLOG test: +test "$FUZZING_ENGINE" = "afl" && { + export AFL_LLVM_CMPLOG=1 + touch $OUT/afl_cmplog.txt +} + WIRESHARK_BUILD_PATH="$WORK/build" mkdir -p "$WIRESHARK_BUILD_PATH" |