[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

@@ -4108,15 +4108,7 @@ png_read_IDAT_data(png_structrp png_ptr, png_bytep output,
png_zstream_error(png_ptr, ret);
if (output != NULL)
{
if(!strncmp(png_ptr->zstream.msg,"incorrect data check",20))
{
png_chunk_benign_error(png_ptr, "ADLER32 checksum mismatch");
continue;
}
else
png_chunk_error(png_ptr, png_ptr->zstream.msg);
}
png_chunk_error(png_ptr, png_ptr->zstream.msg);
else /* checking */
{