[libpng16] Issue a png_benign_error instead of a png_error on ADLER32 mismatch

while decoding compressed data chunks.
This commit is contained in:
Glenn Randers-Pehrson
2016-09-11 22:02:05 -05:00
parent bc2bb96cd7
commit 1842d7c865
4 changed files with 18 additions and 4 deletions

View File

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