[libpng16] Imported from libpng-1.6.24beta06.tar

This commit is contained in:
Glenn Randers-Pehrson
2016-07-18 08:40:26 -05:00
parent 639b48625f
commit ee079481c9
17 changed files with 35 additions and 32 deletions

View File

@@ -90,7 +90,7 @@ png_get_int_32)(png_const_bytep buf)
uval = (uval ^ 0xffffffff) + 1; /* 2's complement: -x = ~x+1 */
if ((uval & 0x80000000) == 0) /* no overflow */
return -(png_int_32)uval;
return -(png_int_32)uval;
/* The following has to be safe; this function only gets called on PNG data
* and if we get here that data is invalid. 0 is the most safe value and
* if not then an attacker would surely just generate a PNG with 0 instead.