summaryrefslogtreecommitdiff
path: root/support/cJSON-master/fuzzing/afl.sh
diff options
context:
space:
mode:
authorlijie <[email protected]>2018-12-18 14:13:02 +0800
committerlijie <[email protected]>2018-12-18 14:13:02 +0800
commita4abef91b597f226f918f506e7ff591a77f3b126 (patch)
treeb16c769bb9ec312b832b28d7315110f7daecc631 /support/cJSON-master/fuzzing/afl.sh
parentfc99454ea9bce35065e34b28815f8cf417b37804 (diff)
修改包含cjson头文件形式,添加mrl的cjson源码v2.0.0
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