aboutsummaryrefslogtreecommitdiffhomepage
path: root/projects/libxml2/build.sh
diff options
context:
space:
mode:
Diffstat (limited to 'projects/libxml2/build.sh')
-rwxr-xr-xprojects/libxml2/build.sh6
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"