mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-07-10 16:22:22 +03:00
adding testcase for overflow
This commit is contained in:
parent
37516fb665
commit
494fb25bdb
6
Tests/32bit_overflow_check.py
Normal file
6
Tests/32bit_overflow_check.py
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
from PIL import Image
|
||||||
|
import sys
|
||||||
|
|
||||||
|
|
||||||
|
if sys.maxsize < 2**32:
|
||||||
|
Image.core.set_blocks_max(2**29)
|
Loading…
Reference in New Issue
Block a user