[libpng16] Use zlib-1.2.8.1 inflateValidate() instead of inflateReset2() to

avoid ADLER32 evaluation.
This commit is contained in:
Glenn Randers-Pehrson 2016-10-07 13:33:50 -05:00
parent ffaeff82d3
commit a106899acd
3 changed files with 9 additions and 5 deletions

View File

@ -1,4 +1,4 @@
Libpng 1.6.26beta06 - October 6, 2016 Libpng 1.6.26beta06 - October 7, 2016
This is not intended to be a public release. It will be replaced This is not intended to be a public release. It will be replaced
within a few weeks by a public version or by another test version. within a few weeks by a public version or by another test version.
@ -65,7 +65,9 @@ Version 1.6.26beta05 [October 6, 2016]
Changed integer constant 4294967294 to unsigned 4294967294U in pngconf.h Changed integer constant 4294967294 to unsigned 4294967294U in pngconf.h
to avoid a signed/unsigned compare in the preprocessor. to avoid a signed/unsigned compare in the preprocessor.
Version 1.6.26beta05 [October 6, 2016] Version 1.6.26beta05 [October 7, 2016]
Use zlib-1.2.8.1 inflateValidate() instead of inflateReset2() to
avoid ADLER32 evaluation.
Send comments/corrections/commendations to png-mng-implement at lists.sf.net Send comments/corrections/commendations to png-mng-implement at lists.sf.net
(subscription required; visit (subscription required; visit

View File

@ -5743,7 +5743,9 @@ Version 1.6.26beta05 [October 6, 2016]
Changed integer constant 4294967294 to unsigned 4294967294U in pngconf.h Changed integer constant 4294967294 to unsigned 4294967294U in pngconf.h
to avoid a signed/unsigned compare in the preprocessor. to avoid a signed/unsigned compare in the preprocessor.
Version 1.6.26beta05 [October 6, 2016] Version 1.6.26beta05 [October 7, 2016]
Use zlib-1.2.8.1 inflateValidate() instead of inflateReset2() to
avoid ADLER32 evaluation.
Send comments/corrections/commendations to png-mng-implement at lists.sf.net Send comments/corrections/commendations to png-mng-implement at lists.sf.net
(subscription required; visit (subscription required; visit

View File

@ -418,10 +418,10 @@ png_inflate_claim(png_structrp png_ptr, png_uint_32 owner)
png_ptr->flags |= PNG_FLAG_ZSTREAM_INITIALIZED; png_ptr->flags |= PNG_FLAG_ZSTREAM_INITIALIZED;
} }
#if ZLIB_VERNUM >= 0x1240 #if ZLIB_VERNUM >= 0x1281
/* Turn off validation of the ADLER32 checksum */ /* Turn off validation of the ADLER32 checksum */
if ((png_ptr->flags & PNG_FLAG_CRC_CRITICAL_IGNORE) != 0) if ((png_ptr->flags & PNG_FLAG_CRC_CRITICAL_IGNORE) != 0)
ret = inflateReset2(&png_ptr->zstream, -window_bits); ret = inflateValidate(&png_ptr->zstream, 0);
#endif #endif
if (ret == Z_OK) if (ret == Z_OK)