CMake: Add ENABLE_FUZZING and "afl" target

This commit is contained in:
Max Bruckner
2017-02-17 15:48:50 +01:00
parent 44512f643e
commit 0e0cd5bae5
17 changed files with 435 additions and 1 deletions

9
fuzzing/afl.sh Executable file
View File

@ -0,0 +1,9 @@
#!/bin/bash
mkdir -p afl-build || exit 1
cd afl-build || exit 1
#cleanup
rm -r -- *
CC=afl-gcc cmake ../.. -DENABLE_FUZZING=On -DENABLE_SANITIZERS=On -DBUILD_SHARED_LIBS=Off
make afl