mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-26 17:24:31 +03:00
Merge pull request #787 from wiredfool/32bit_segfault_test
Make 32bit sefrault test safer
This commit is contained in:
commit
cf763ea036
10
Tests/32bit_segfault_check.py
Normal file
10
Tests/32bit_segfault_check.py
Normal file
|
@ -0,0 +1,10 @@
|
|||
#!/usr/bin/env python
|
||||
|
||||
from PIL import Image
|
||||
import sys
|
||||
|
||||
|
||||
if sys.maxsize < 2**32:
|
||||
im = Image.new('L', (999999, 999999), 0)
|
||||
|
||||
|
|
@ -1,7 +0,0 @@
|
|||
#!/usr/bin/env python
|
||||
|
||||
from PIL import Image
|
||||
|
||||
im = Image.new('L', (999999, 999999), 0)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user