libextractor

GNU libextractor
Log | Files | Refs | Submodules | README | LICENSE

commit 93e5c1032d4ebb97233804d96fc95cb08c95795e
parent 5e0f11616b1cd2d865b7e28b4c2ce6978828725a
Author: Heikki Lindholm <holin@iki.fi>
Date:   Sun, 29 Jun 2008 05:55:26 +0000

preserve the file that caused the error


Diffstat:
Msrc/test/fuzz_default.sh | 4++--
Msrc/test/fuzz_thumbnail.sh | 4++--
2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/test/fuzz_default.sh b/src/test/fuzz_default.sh @@ -21,14 +21,14 @@ do then tmpfile=`mktemp extractortmp.XXXXXX` || exit 1 seed=$ZZSTARTSEED - trap "echo crashed by $tmpfile ; exit 1" SEGV + trap "echo $tmpfile caused SIGSEGV ; exit 1" SEGV while [ $seed -lt $ZZSTOPSEED ] do echo "file $file seed $seed" zzuf -c -s $seed cat "$file" > "$tmpfile" if ! "$bindir/extract" "$tmpfile" > /dev/null then - rm -f "$tmpfile" + echo "$tmpfile caused error exit" exit 1 fi seed=`expr $seed + 1` diff --git a/src/test/fuzz_thumbnail.sh b/src/test/fuzz_thumbnail.sh @@ -21,14 +21,14 @@ do then tmpfile=`mktemp extractortmp.XXXXXX` || exit 1 seed=$ZZSTARTSEED - trap "echo crashed by $tmpfile ; exit 1" SEGV + trap "echo $tmpfile caused SIGSEGV ; exit 1" SEGV while [ $seed -lt $ZZSTOPSEED ] do echo "file $file seed $seed" zzuf -c -s $seed cat "$file" > "$tmpfile" if ! "$bindir/extract" -n -l libextractor_thumbnail:libextractor_mime "$tmpfile" > /dev/null then - rm -f "$tmpfile" + echo "$tmpfile caused error exit" exit 1 fi seed=`expr $seed + 1`