diff options
author | Bob Friesenhahn <bfriesen@simple.dallas.tx.us> | 2018-12-08 15:36:14 -0600 |
---|---|---|
committer | Bob Friesenhahn <bfriesen@simple.dallas.tx.us> | 2018-12-08 15:36:14 -0600 |
commit | 56a1976e9214d7f38249cc133dfcbf851683a498 (patch) | |
tree | 44bba4dc569b85d9bd8fade0862866097f1677fd /libtiff/tif_zip.c | |
parent | ae0325a1ab0bf5c5ea0832c103f53c676f0a839c (diff) | |
download | libtiff-git-56a1976e9214d7f38249cc133dfcbf851683a498.tar.gz |
Do not attempt to re-sync zip stream after reported data error from inflate().
Diffstat (limited to 'libtiff/tif_zip.c')
-rw-r--r-- | libtiff/tif_zip.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libtiff/tif_zip.c b/libtiff/tif_zip.c index 9d4bceb1..b71c44e8 100644 --- a/libtiff/tif_zip.c +++ b/libtiff/tif_zip.c @@ -179,8 +179,8 @@ 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) - return (0); + /* if (inflateSync(&sp->stream) != Z_OK) */ + return (0); continue; } if (state != Z_OK) { |