mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-27 17:54:32 +03:00
Allocate a new core image object for each frame, fixes problems with reusing palettes and image sizes
This commit is contained in:
parent
9f04c2d0a5
commit
99f7dd2aff
|
@ -655,6 +655,8 @@ class TiffImageFile(ImageFile.ImageFile):
|
||||||
self.__next = self.tag.next
|
self.__next = self.tag.next
|
||||||
self.__frame += 1
|
self.__frame += 1
|
||||||
self._setup()
|
self._setup()
|
||||||
|
#UNDONE - decompresion bomb
|
||||||
|
self.im = Image.core.new(self.mode, self.size)
|
||||||
|
|
||||||
def _tell(self):
|
def _tell(self):
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user