summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Rasmussen <sebras@gmail.com>2016-09-27 17:04:04 +0800
committerSebastian Rasmussen <sebras@gmail.com>2016-09-28 00:10:39 +0800
commit9eb9cee0c05de9305d007671693f92b7ad1a7cd4 (patch)
tree83538cd8603e046e95650c8935789a2a40c1b7a7
parente07b6fdd72d638840c077a8b53226a6aefd7d9ec (diff)
downloadmupdf-9eb9cee0c05de9305d007671693f92b7ad1a7cd4.tar.xz
Bug 697155: tiff: Drop stream if compression is unknown.
m5-299787ea764c0a88bc481364eded5556.tif
-rw-r--r--source/fitz/load-tiff.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/fitz/load-tiff.c b/source/fitz/load-tiff.c
index 9e37cc6f..09f6f88b 100644
--- a/source/fitz/load-tiff.c
+++ b/source/fitz/load-tiff.c
@@ -460,6 +460,7 @@ fz_decode_tiff_chunk(fz_context *ctx, struct tiff *tiff, unsigned char *rp, unsi
size = fz_decode_tiff_thunder(ctx, tiff, stm, wp, wlen, tiff->imagewidth);
break;
default:
+ fz_drop_stream(ctx, stm);
fz_throw(ctx, FZ_ERROR_GENERIC, "unknown TIFF compression: %d", tiff->compression);
}