From 458dd61bbbd5664655d6a934d3c7e9eea82d5644 Mon Sep 17 00:00:00 2001 From: van Hauser Date: Sun, 7 Feb 2021 18:42:13 +0100 Subject: afl++ CMPLOG test (#5130) * afl++ CMPLOG test * fixes --- projects/libxml2/build.sh | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'projects/libxml2/build.sh') 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" -- cgit v1.2.3