Added fuzzing to travis

This commit is contained in:
Benoit Blanchon
2018-06-06 11:19:36 +02:00
parent 9ac9b533b6
commit 7b229e4c38
3 changed files with 26 additions and 9 deletions

View File

@ -1,9 +0,0 @@
#!/bin/bash
# This script mimics an invocation from https://github.com/google/oss-fuzz
cd $(dirname $0)
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 -max_len=1024 -timeout=10