libpng/contrib/libtests
John Bowler 319c9852bf Unsigned overflow
Remove all currently detected cases of unsigned overflow.  Detection is
runtime, so test case dependent.  The changes to pngvalid.c eliminate
spurious and probably invalid tests with one while loop exception.

Apart from that and the change to the dependence on the intended
unsigned overflow in pngtrans.c the changes are limited to altering the
meme for an unsigned 'x' from:

   while (x-- > 0)

to

   for (; x > 0; --x)

This works because, in all cases, the control variable is not used in
the loop.  The 'while' meme was, at one time, warn'ed by GCC so it is
probably a good change, for some weird religious value of good.

Signed-off-by: John Bowler <jbowler@acm.org>
2016-09-30 18:37:22 -07:00
..
fakepng.c [libpng16] Fix typo (extra "*/") in contrib/libtests/fakepng.c 2015-09-15 17:07:34 -05:00
gentests.sh [libpng16] Bump version to 1.6.1beta05 2013-03-02 15:03:15 -06:00
makepng.c [libpng16] Happy 2016! Updated copyright year 2016-01-02 13:40:27 -06:00
pngimage.c [libpng16] Imported from libpng-1.6.24.tar 2016-08-03 21:32:26 -05:00
pngstest-errors.h pngstest 1.6 error limit and warning revisions 2015-09-25 13:40:18 -07:00
pngstest.c [libpng16] Imported from libpng-1.6.24.tar 2016-08-03 21:32:26 -05:00
pngunknown.c Unsigned overflow 2016-09-30 18:37:22 -07:00
pngvalid.c Unsigned overflow 2016-09-30 18:37:22 -07:00
readpng.c [libpng16] Update CHANGES, ANNOUNCE, minor editing of contrib/*/*.c 2015-11-25 15:55:01 -06:00
tarith.c [libpng16] Change "n bit" to "n-bit" in comments. 2015-08-13 20:57:18 -05:00
timepng.c [libpng16] Imported from libpng-1.6.22.tar 2016-05-26 07:25:14 -05:00