diff options
Diffstat (limited to 'source')
-rw-r--r-- | source/fitz/load-tiff.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/fitz/load-tiff.c b/source/fitz/load-tiff.c index 59b86b92..ca3b71cc 100644 --- a/source/fitz/load-tiff.c +++ b/source/fitz/load-tiff.c @@ -1024,12 +1024,16 @@ fz_decode_tiff_samples(fz_context *ctx, struct tiff *tiff) { tiff->tileoffsets = tiff->stripoffsets; tiff->tileoffsetslen = tiff->stripoffsetslen; + tiff->stripoffsets = NULL; + tiff->stripoffsetslen = 0; } if (!tiff->tilebytecounts && !tiff->tilebytecountslen && tiff->stripbytecounts && tiff->stripbytecountslen) { tiff->tilebytecounts = tiff->stripbytecounts; tiff->tilebytecountslen = tiff->stripbytecountslen; + tiff->stripbytecounts = NULL; + tiff->stripbytecountslen = 0; } } |