summaryrefslogtreecommitdiffstats
path: root/fuzz/test-fuzzers.sh
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2023-01-08 21:29:57 +0100
committerGravatar Nikias Bassen2023-01-08 21:29:57 +0100
commite212eb6ed1b1a6fb4d71c1ac8a687ea017d60ad5 (patch)
treea14e66ad7e24f7382cfbc0eedc95ef6ef22c396b /fuzz/test-fuzzers.sh
parent395ecda5679a0cce253e64d1ada3ce1936a02ac8 (diff)
downloadlibplist-e212eb6ed1b1a6fb4d71c1ac8a687ea017d60ad5.tar.gz
libplist-e212eb6ed1b1a6fb4d71c1ac8a687ea017d60ad5.tar.bz2
fuzz: Add OpenStep plist fuzzer
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 40be74f..4fdf82b 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 || ! test -x jplist_fuzzer; then 8if ! test -x xplist_fuzzer || ! test -x bplist_fuzzer || ! test -x jplist_fuzzer || ! test -x oplist_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 || ! test -d jplist-input; then 14if ! test -d xplist-input || ! test -d bplist-input || ! test -d jplist-input || ! test -d oplist-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
@@ -35,5 +35,11 @@ if ! ./jplist_fuzzer jplist-input -dict=jplist.dict -max_len=65536 -runs=10000;
35 exit 1 35 exit 1
36fi 36fi
37 37
38echo "### TESTING oplist_fuzzer ###"
39if ! ./oplist_fuzzer oplist-input -dict=oplist.dict -max_len=65536 -runs=10000; then
40 cd ${CURDIR}
41 exit 1
42fi
43
38cd ${CURDIR} 44cd ${CURDIR}
39exit 0 45exit 0