diff options
author | Nikias Bassen | 2022-01-25 03:45:30 +0100 |
---|---|---|
committer | Nikias Bassen | 2022-01-25 03:45:30 +0100 |
commit | c7b005bc7864b6109115d4278872152208e78c23 (patch) | |
tree | 73b635fea8d49521bfff3815a0fc1566d3185692 /fuzz/init-fuzzers.sh | |
parent | 323009bfd003ff1540967b7b67efebab1ee8693d (diff) | |
download | libplist-c7b005bc7864b6109115d4278872152208e78c23.tar.gz libplist-c7b005bc7864b6109115d4278872152208e78c23.tar.bz2 |
fuzz: Add fuzzer for JSON format
Diffstat (limited to 'fuzz/init-fuzzers.sh')
-rwxr-xr-x | fuzz/init-fuzzers.sh | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/fuzz/init-fuzzers.sh b/fuzz/init-fuzzers.sh index 4d28016..ea2c8cc 100755 --- a/fuzz/init-fuzzers.sh +++ b/fuzz/init-fuzzers.sh @@ -5,7 +5,7 @@ FUZZDIR=`dirname $0` cd ${FUZZDIR} -if ! test -x xplist_fuzzer || ! test -x bplist_fuzzer; then +if ! test -x xplist_fuzzer || ! test -x bplist_fuzzer || ! test -x jplist_fuzzer; then echo "ERROR: you need to build the fuzzers first." cd ${CURDIR} exit 1 @@ -19,5 +19,12 @@ mkdir -p bplist-input cp ../test/data/*.bplist bplist-input/ ./bplist_fuzzer -merge=1 bplist-input bplist-crashes bplist-leaks -dict=bplist.dict +mkdir -p jplist-input +mkdir -p jplist-crashes +mkdir -p jplist-leaks +cp ../test/data/j1.plist jplist-input/ +cp ../test/data/j2.plist jplist-input/ +./jplist_fuzzer -merge=1 jplist-input jplist-crashes jplist-leaks -dict=jplist.dict + cd ${CURDIR} exit 0 |