From: Dan F. <dfa...@us...> - 2009-11-16 22:49:44
|
Update of /cvsroot/libexif/libexif-testsuite/tests In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv14236/tests Modified Files: Makefile.am Added Files: bid37022.jpg check-bid37022.sh Log Message: Added check-bid37022.sh to test for the heap overflow problem in libexif. Released 0.7.15 --- NEW FILE: check-bid37022.sh --- #!/bin/sh # Checks that libexif doesn't crash when reading a invalid image with a BYTE # array that is fixed up to SHORT. libexif 0.6.18 overflowed the heap in # that case. This isn't a complete test because a heap overflow won't # always cause a crash, but a malloc library which checks heap consistency # should catch it (such as glibc does when linked with -lmcheck). . check-vars.sh bug="bid37022" srcimg="$SRCDIR/${bug}.jpg" echo "Reading EXIF image" env LANG=C LANGUAGE=C "$EXIFEXE" "$srcimg" >/dev/null # if the program doesn't crash it's a successful test Index: Makefile.am =================================================================== RCS file: /cvsroot/libexif/libexif-testsuite/tests/Makefile.am,v retrieving revision 1.25 retrieving revision 1.26 diff -u -p -d -r1.25 -r1.26 --- Makefile.am 14 Oct 2009 06:50:56 -0000 1.25 +++ Makefile.am 16 Nov 2009 22:49:31 -0000 1.26 @@ -17,7 +17,8 @@ EXTRA_DIST = \ check-1054321.sh 1054321.jpg \ check-1054322.sh 1054322.jpg \ check-1054323.sh 1054323.jpg \ - check-1169170.sh + check-1169170.sh \ + check-bid37022.sh bid37022.jpg if HAVE_EXIF_CLI @@ -27,7 +28,8 @@ check_SCRIPTS = \ check-1054321.sh \ check-1054322.sh \ check-1054323.sh \ - check-1169170.sh + check-1169170.sh \ + check-bid37022.sh # These check scripts may take a little long - but are invaluable. :) check_SCRIPTS += check-general-images.sh \ --- NEW FILE: bid37022.jpg --- (This appears to be a binary file; contents omitted.) |