mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-11-10 19:56:47 +03:00
Replaced mixed tabs and spaces with spaces
This commit is contained in:
parent
e51061dd59
commit
6de51536c4
|
@ -66,7 +66,7 @@ class TestImagePath(PillowTestCase):
|
||||||
try:
|
try:
|
||||||
# post patch, this fails with a memory error
|
# post patch, this fails with a memory error
|
||||||
x = evil()
|
x = evil()
|
||||||
|
|
||||||
# This fails due to the invalid malloc above,
|
# This fails due to the invalid malloc above,
|
||||||
# and segfaults
|
# and segfaults
|
||||||
for i in range(200000):
|
for i in range(200000):
|
||||||
|
@ -85,15 +85,15 @@ class TestImagePath(PillowTestCase):
|
||||||
|
|
||||||
|
|
||||||
class evil:
|
class evil:
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
self.corrupt = Image.core.path(0x4000000000000000)
|
self.corrupt = Image.core.path(0x4000000000000000)
|
||||||
|
|
||||||
def __getitem__(self, i):
|
def __getitem__(self, i):
|
||||||
x = self.corrupt[i]
|
x = self.corrupt[i]
|
||||||
return struct.pack("dd", x[0], x[1])
|
return struct.pack("dd", x[0], x[1])
|
||||||
|
|
||||||
def __setitem__(self, i, x):
|
def __setitem__(self, i, x):
|
||||||
self.corrupt[i] = struct.unpack("dd", x)
|
self.corrupt[i] = struct.unpack("dd", x)
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
|
|
Loading…
Reference in New Issue
Block a user