diff options
author | Sebastian Rasmussen <sebras@gmail.com> | 2017-04-30 15:09:34 +0800 |
---|---|---|
committer | Sebastian Rasmussen <sebras@gmail.com> | 2017-05-02 00:51:01 +0800 |
commit | a302d246821f17c8fae02619748355407a7a2526 (patch) | |
tree | a928af233744fc5dddcc986fa8a50e8200bc98c2 | |
parent | 6abb2ad2350cecbf8052fcbb52b71e6cf32cea7f (diff) | |
download | mupdf-a302d246821f17c8fae02619748355407a7a2526.tar.xz |
tiff: Fix typo in validation of tiles images.
-rw-r--r-- | source/fitz/load-tiff.c | 2 |
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); |