From d0e51650e36713bfb453f14d5e06be392a968c28 Mon Sep 17 00:00:00 2001 From: Kenny Ostrom Date: Tue, 26 Aug 2014 10:09:23 -0500 Subject: [PATCH] removed some deadend attempts that should have been rolled back once the ifd offset was passed in args.\nThere should be no changes to Tile or clientstate->loc for this code. --- PIL/TiffImagePlugin.py | 2 +- libImaging/TiffDecode.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/PIL/TiffImagePlugin.py b/PIL/TiffImagePlugin.py index 8e283e028..44b9f3c79 100644 --- a/PIL/TiffImagePlugin.py +++ b/PIL/TiffImagePlugin.py @@ -903,7 +903,7 @@ class TiffImageFile(ImageFile.ImageFile): self.tile.append( (self._compression, (0, 0, w, ysize), - self.ifd.offset, a)) + 0, a)) a = None else: diff --git a/libImaging/TiffDecode.c b/libImaging/TiffDecode.c index 40fca19d8..1d320e9bd 100644 --- a/libImaging/TiffDecode.c +++ b/libImaging/TiffDecode.c @@ -193,7 +193,7 @@ int ImagingLibTiffDecode(Imaging im, ImagingCodecState state, UINT8* buffer, int dump_state(clientstate); clientstate->size = bytes; clientstate->eof = clientstate->size; - //clientstate->loc = 0; + clientstate->loc = 0; clientstate->data = (tdata_t)buffer; clientstate->flrealloc = 0; dump_state(clientstate);