Added decompression bomb check to WalImageFile

This commit is contained in:
Andrew Murray 2016-11-26 11:50:56 +11:00
parent 87de178e0b
commit 14cfec0b49

View File

@ -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)