2019-03-14 16:30:05 +01:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
#set -x
|
|
|
|
set -e
|
|
|
|
|
2019-11-21 17:22:43 +01:00
|
|
|
# Glib is built without -fno-omit-frame-pointer. We need
|
2019-03-14 16:30:05 +01:00
|
|
|
# to disable the fast unwinder to get full stacktraces.
|
|
|
|
export ASAN_OPTIONS="fast_unwind_on_malloc=0:allocator_may_return_null=1"
|
2019-08-02 12:23:39 +02:00
|
|
|
export UBSAN_OPTIONS="print_stacktrace=1"
|
2019-03-14 16:30:05 +01:00
|
|
|
|
|
|
|
# Hide all warning messages from vips.
|
|
|
|
export VIPS_WARNING=0
|
|
|
|
|
|
|
|
ret=0
|
|
|
|
|
|
|
|
for fuzzer in *_fuzzer; do
|
2019-10-07 16:57:00 +02:00
|
|
|
for file in common_fuzzer_corpus/*; do
|
|
|
|
if ! ./$fuzzer $file; then
|
|
|
|
echo FAIL $fuzzer $file
|
|
|
|
ret=1
|
|
|
|
fi
|
|
|
|
done
|
2019-03-14 16:30:05 +01:00
|
|
|
done
|
|
|
|
|
|
|
|
exit $ret
|