From a302d246821f17c8fae02619748355407a7a2526 Mon Sep 17 00:00:00 2001 From: Sebastian Rasmussen Date: Sun, 30 Apr 2017 15:09:34 +0800 Subject: tiff: Fix typo in validation of tiles images. --- source/fitz/load-tiff.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/fitz/load-tiff.c b/source/fitz/load-tiff.c index a6c1cefe..9afcb012 100644 --- a/source/fitz/load-tiff.c +++ b/source/fitz/load-tiff.c @@ -911,7 +911,7 @@ tiff_read_tag(fz_context *ctx, struct tiff *tiff, unsigned offset) break; case TileByteCounts: - if (tiff->tileoffsets) + if (tiff->tilebytecounts) fz_throw(ctx, FZ_ERROR_GENERIC, "at most one tile byte counts tag allowed"); tiff->tilebytecounts = fz_malloc_array(ctx, count, sizeof(unsigned)); tiff_read_tag_value(tiff->tilebytecounts, tiff, type, value, count); -- cgit v1.2.3