mirror of
https://github.com/SideStore/SideStore.git
synced 2026-02-21 12:43:25 +01:00
More spm fixes
This commit is contained in:
33
Sources/libimobiledevice/dependencies/libplist/fuzz/test-fuzzers.sh
Executable file
33
Sources/libimobiledevice/dependencies/libplist/fuzz/test-fuzzers.sh
Executable file
@@ -0,0 +1,33 @@
|
||||
#!/bin/sh
|
||||
|
||||
CURDIR=`pwd`
|
||||
FUZZDIR=`dirname $0`
|
||||
|
||||
cd ${FUZZDIR}
|
||||
|
||||
if ! test -x xplist_fuzzer || ! test -x bplist_fuzzer; then
|
||||
echo "ERROR: you need to build the fuzzers first."
|
||||
cd ${CURDIR}
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if ! test -d xplist-input || ! test -d bplist-input; then
|
||||
echo "ERROR: fuzzer corpora directories are not present. Did you run init-fuzzers.sh ?"
|
||||
cd ${CURDIR}
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "### TESTING xplist_fuzzer ###"
|
||||
if ! ./xplist_fuzzer xplist-input -dict=xplist.dict -max_len=65536 -runs=10000; then
|
||||
cd ${CURDIR}
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "### TESTING bplist_fuzzer ###"
|
||||
if ! ./bplist_fuzzer bplist-input -dict=bplist.dict -max_len=4096 -runs=10000; then
|
||||
cd ${CURDIR}
|
||||
exit 1
|
||||
fi
|
||||
|
||||
cd ${CURDIR}
|
||||
exit 0
|
||||
Reference in New Issue
Block a user