summaryrefslogtreecommitdiff
path: root/support/cJSON-master/fuzzing/afl.sh
diff options
context:
space:
mode:
Diffstat (limited to 'support/cJSON-master/fuzzing/afl.sh')
-rw-r--r--support/cJSON-master/fuzzing/afl.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/support/cJSON-master/fuzzing/afl.sh b/support/cJSON-master/fuzzing/afl.sh
new file mode 100644
index 0000000..8f0f02f
--- /dev/null
+++ b/support/cJSON-master/fuzzing/afl.sh
@@ -0,0 +1,9 @@
+#!/bin/bash
+
+mkdir -p afl-build || exit 1
+cd afl-build || exit 1
+#cleanup
+rm -r -- *
+
+CC=afl-clang-fast cmake ../.. -DENABLE_FUZZING=On -DENABLE_SANITIZERS=On -DBUILD_SHARED_LIBS=Off
+make afl