diff options
author | van Hauser <vh@thc.org> | 2021-02-07 18:42:13 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-07 09:42:13 -0800 |
commit | 458dd61bbbd5664655d6a934d3c7e9eea82d5644 (patch) | |
tree | 54616396bc951c3b8f661e454c62b63a6c46f7fb /projects/libxml2 | |
parent | bae8dd8b5c54f8a3b7a7e43a927f8bd491c5be35 (diff) |
afl++ CMPLOG test (#5130)
* afl++ CMPLOG test
* fixes
Diffstat (limited to 'projects/libxml2')
-rwxr-xr-x | projects/libxml2/build.sh | 6 |
1 files changed, 6 insertions, 0 deletions
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" |