[libpng16] Revert ADLER32 error handling in pngrutil.c and pngpread.c.

This commit is contained in:
Glenn Randers-Pehrson
2016-11-08 16:04:08 -06:00
parent a69dd76eac
commit d65a92b951
4 changed files with 7 additions and 18 deletions

View File

@@ -684,12 +684,7 @@ png_process_IDAT_data(png_structrp png_ptr, png_bytep buffer,
png_warning(png_ptr, "Truncated compressed data in IDAT");
else
{
if (ret == Z_DATA_ERROR)
png_benign_error(png_ptr, "IDAT: ADLER32 checksum mismatch");
else
png_error(png_ptr, "Decompression error in IDAT");
}
png_error(png_ptr, "Decompression error in IDAT");
/* Skip the check on unprocessed input */
return;