mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-13 10:46:16 +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:
|
||||
# post patch, this fails with a memory error
|
||||
x = evil()
|
||||
|
||||
|
||||
# This fails due to the invalid malloc above,
|
||||
# and segfaults
|
||||
for i in range(200000):
|
||||
|
@ -85,15 +85,15 @@ class TestImagePath(PillowTestCase):
|
|||
|
||||
|
||||
class evil:
|
||||
def __init__(self):
|
||||
self.corrupt = Image.core.path(0x4000000000000000)
|
||||
def __init__(self):
|
||||
self.corrupt = Image.core.path(0x4000000000000000)
|
||||
|
||||
def __getitem__(self, i):
|
||||
x = self.corrupt[i]
|
||||
return struct.pack("dd", x[0], x[1])
|
||||
def __getitem__(self, i):
|
||||
x = self.corrupt[i]
|
||||
return struct.pack("dd", x[0], x[1])
|
||||
|
||||
def __setitem__(self, i, x):
|
||||
self.corrupt[i] = struct.unpack("dd", x)
|
||||
def __setitem__(self, i, x):
|
||||
self.corrupt[i] = struct.unpack("dd", x)
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
|
Loading…
Reference in New Issue
Block a user