summaryrefslogtreecommitdiffstats
path: root/fuzz/test-fuzzers.sh
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2022-01-25 03:45:30 +0100
committerGravatar Nikias Bassen2022-01-25 03:45:30 +0100
commitc7b005bc7864b6109115d4278872152208e78c23 (patch)
tree73b635fea8d49521bfff3815a0fc1566d3185692 /fuzz/test-fuzzers.sh
parent323009bfd003ff1540967b7b67efebab1ee8693d (diff)
downloadlibplist-c7b005bc7864b6109115d4278872152208e78c23.tar.gz
libplist-c7b005bc7864b6109115d4278872152208e78c23.tar.bz2
fuzz: Add fuzzer for JSON format
Diffstat (limited to 'fuzz/test-fuzzers.sh')
-rwxr-xr-xfuzz/test-fuzzers.sh10
1 files changed, 8 insertions, 2 deletions
diff --git a/fuzz/test-fuzzers.sh b/fuzz/test-fuzzers.sh
index b0a8367..40be74f 100755
--- a/fuzz/test-fuzzers.sh
+++ b/fuzz/test-fuzzers.sh
@@ -5,13 +5,13 @@ FUZZDIR=`dirname $0`
5 5
6cd ${FUZZDIR} 6cd ${FUZZDIR}
7 7
8if ! test -x xplist_fuzzer || ! test -x bplist_fuzzer; then 8if ! test -x xplist_fuzzer || ! test -x bplist_fuzzer || ! test -x jplist_fuzzer; then
9 echo "ERROR: you need to build the fuzzers first." 9 echo "ERROR: you need to build the fuzzers first."
10 cd ${CURDIR} 10 cd ${CURDIR}
11 exit 1 11 exit 1
12fi 12fi
13 13
14if ! test -d xplist-input || ! test -d bplist-input; then 14if ! test -d xplist-input || ! test -d bplist-input || ! test -d jplist-input; then
15 echo "ERROR: fuzzer corpora directories are not present. Did you run init-fuzzers.sh ?" 15 echo "ERROR: fuzzer corpora directories are not present. Did you run init-fuzzers.sh ?"
16 cd ${CURDIR} 16 cd ${CURDIR}
17 exit 1 17 exit 1
@@ -29,5 +29,11 @@ if ! ./bplist_fuzzer bplist-input -dict=bplist.dict -max_len=4096 -runs=10000; t
29 exit 1 29 exit 1
30fi 30fi
31 31
32echo "### TESTING jplist_fuzzer ###"
33if ! ./jplist_fuzzer jplist-input -dict=jplist.dict -max_len=65536 -runs=10000; then
34 cd ${CURDIR}
35 exit 1
36fi
37
32cd ${CURDIR} 38cd ${CURDIR}
33exit 0 39exit 0