summaryrefslogtreecommitdiff
path: root/source/fitz/load-tiff.c
diff options
context:
space:
mode:
authorSebastian Rasmussen <sebras@gmail.com>2017-04-30 15:09:34 +0800
committerSebastian Rasmussen <sebras@gmail.com>2017-05-02 00:51:01 +0800
commita302d246821f17c8fae02619748355407a7a2526 (patch)
treea928af233744fc5dddcc986fa8a50e8200bc98c2 /source/fitz/load-tiff.c
parent6abb2ad2350cecbf8052fcbb52b71e6cf32cea7f (diff)
downloadmupdf-a302d246821f17c8fae02619748355407a7a2526.tar.xz
tiff: Fix typo in validation of tiles images.
Diffstat (limited to 'source/fitz/load-tiff.c')
-rw-r--r--source/fitz/load-tiff.c2
1 files changed, 1 insertions, 1 deletions
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);