summaryrefslogtreecommitdiff
path: root/libtiff/tif_zip.c
diff options
context:
space:
mode:
authorBob Friesenhahn <bfriesen@simple.dallas.tx.us>2018-12-08 15:36:14 -0600
committerBob Friesenhahn <bfriesen@simple.dallas.tx.us>2018-12-08 15:36:14 -0600
commit56a1976e9214d7f38249cc133dfcbf851683a498 (patch)
tree44bba4dc569b85d9bd8fade0862866097f1677fd /libtiff/tif_zip.c
parentae0325a1ab0bf5c5ea0832c103f53c676f0a839c (diff)
downloadlibtiff-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.c4
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) {