Added fuzzer

This commit is contained in:
Benoit Blanchon
2017-01-08 16:17:01 +01:00
parent 671329a3e9
commit 6b2f6a4f87
10 changed files with 238 additions and 0 deletions

8
fuzzing/fuzz.sh Executable file
View File

@ -0,0 +1,8 @@
#!/bin/bash
# This script mimics an invocation from https://github.com/google/oss-fuzz
export CXX='clang++'
export CXXFLAGS='-fsanitize-coverage=trace-pc-guard -fsanitize=address'
export LIB_FUZZING_ENGINE=-lFuzzer
make OUT=.
./json_fuzzer my_corpus seed_corpus