mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-27 02:16:19 +03:00
Added decompression bomb check to WalImageFile
This commit is contained in:
parent
87de178e0b
commit
14cfec0b49
|
@ -56,6 +56,7 @@ def open(filename):
|
|||
# load pixel data
|
||||
fp.seek(offset)
|
||||
|
||||
Image._decompression_bomb_check(size)
|
||||
im = Image.frombytes("P", size, fp.read(size[0] * size[1]))
|
||||
im.putpalette(quake2palette)
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user