Do not attempt to re-sync zip stream after reported data error from inflate().
This commit is contained in:
parent
ae0325a1ab
commit
56a1976e92
@ -817,7 +817,7 @@ PixarLogDecode(TIFF* tif, uint8* op, tmsize_t occ, uint16 s)
|
||||
TIFFErrorExt(tif->tif_clientdata, module,
|
||||
"Decoding error at scanline %lu, %s",
|
||||
(unsigned long) tif->tif_row, sp->stream.msg ? sp->stream.msg : "(null)");
|
||||
if (inflateSync(&sp->stream) != Z_OK)
|
||||
/* if (inflateSync(&sp->stream) != Z_OK) */
|
||||
return (0);
|
||||
continue;
|
||||
}
|
||||
|
@ -179,7 +179,7 @@ ZIPDecode(TIFF* tif, uint8* op, tmsize_t occ, uint16 s)
|
||||
TIFFErrorExt(tif->tif_clientdata, module,
|
||||
"Decoding error at scanline %lu, %s",
|
||||
(unsigned long) tif->tif_row, SAFE_MSG(sp));
|
||||
if (inflateSync(&sp->stream) != Z_OK)
|
||||
/* if (inflateSync(&sp->stream) != Z_OK) */
|
||||
return (0);
|
||||
continue;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user