Do not attempt to re-sync zip stream after reported data error from inflate().

This commit is contained in:
Bob Friesenhahn 2018-12-08 15:36:14 -06:00
parent ae0325a1ab
commit 56a1976e92
2 changed files with 4 additions and 4 deletions

View File

@ -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;
}

View File

@ -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;
}