From 8d5a1c2a19d5ac4e1047b052cc6a1fbdd703f398 Mon Sep 17 00:00:00 2001 From: wiredfool Date: Mon, 7 Jul 2014 11:21:46 -0700 Subject: [PATCH 1/2] Renamed to avoid test runner --- Tests/{32bit_segfault_test.py => 32bit_segfault_check.py} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename Tests/{32bit_segfault_test.py => 32bit_segfault_check.py} (100%) diff --git a/Tests/32bit_segfault_test.py b/Tests/32bit_segfault_check.py similarity index 100% rename from Tests/32bit_segfault_test.py rename to Tests/32bit_segfault_check.py From 0a160e44d8f345d89527995bf565101a4f89fba8 Mon Sep 17 00:00:00 2001 From: wiredfool Date: Mon, 7 Jul 2014 11:22:11 -0700 Subject: [PATCH 2/2] Guard to prevent 64 bit machines from crashing --- Tests/32bit_segfault_check.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Tests/32bit_segfault_check.py b/Tests/32bit_segfault_check.py index 958bc6b3c..822d524fd 100644 --- a/Tests/32bit_segfault_check.py +++ b/Tests/32bit_segfault_check.py @@ -1,7 +1,10 @@ #!/usr/bin/env python from PIL import Image +import sys -im = Image.new('L', (999999, 999999), 0) + +if sys.maxsize < 2**32: + im = Image.new('L', (999999, 999999), 0)