mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-28 10:56:18 +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
|
# load pixel data
|
||||||
fp.seek(offset)
|
fp.seek(offset)
|
||||||
|
|
||||||
|
Image._decompression_bomb_check(size)
|
||||||
im = Image.frombytes("P", size, fp.read(size[0] * size[1]))
|
im = Image.frombytes("P", size, fp.read(size[0] * size[1]))
|
||||||
im.putpalette(quake2palette)
|
im.putpalette(quake2palette)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user