2017-01-08 16:17:01 +01:00
|
|
|
#!/bin/bash
|
|
|
|
|
# This script mimics an invocation from https://github.com/google/oss-fuzz
|
|
|
|
|
|
2017-02-19 21:30:22 +01:00
|
|
|
cd $(dirname $0)
|
2017-01-08 16:17:01 +01:00
|
|
|
export CXX='clang++'
|
|
|
|
|
export CXXFLAGS='-fsanitize-coverage=trace-pc-guard -fsanitize=address'
|
|
|
|
|
export LIB_FUZZING_ENGINE=-lFuzzer
|
|
|
|
|
make OUT=.
|
2017-02-19 21:41:12 +01:00
|
|
|
./json_fuzzer my_corpus seed_corpus -max_len=1024 -timeout=10
|