From 9eb9cee0c05de9305d007671693f92b7ad1a7cd4 Mon Sep 17 00:00:00 2001 From: Sebastian Rasmussen Date: Tue, 27 Sep 2016 17:04:04 +0800 Subject: Bug 697155: tiff: Drop stream if compression is unknown. m5-299787ea764c0a88bc481364eded5556.tif --- source/fitz/load-tiff.c | 1 + 1 file changed, 1 insertion(+) (limited to 'source/fitz') 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); } -- cgit v1.2.3