Files
ArduinoJson/fuzzing/fuzz.sh

10 lines
280 B
Bash
Raw Normal View History

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=.
./json_fuzzer my_corpus seed_corpus