mirror of
https://git.code.sf.net/p/libpng/code.git
synced 2025-07-10 18:04:09 +02:00
[libpng16] Issue a png_benign_error instead of a png_error on ADLER32 mismatch
while decoding compressed data chunks.
This commit is contained in:
@@ -4101,7 +4101,12 @@ png_read_IDAT_data(png_structrp png_ptr, png_bytep output,
|
||||
png_zstream_error(png_ptr, ret);
|
||||
|
||||
if (output != NULL)
|
||||
png_chunk_error(png_ptr, png_ptr->zstream.msg);
|
||||
{
|
||||
if(!strncmp(png_ptr->zstream.msg,"incorrect data check",20))
|
||||
png_chunk_benign_error(png_ptr, png_ptr->zstream.msg);
|
||||
else
|
||||
png_chunk_error(png_ptr, png_ptr->zstream.msg);
|
||||
}
|
||||
|
||||
else /* checking */
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user