Pillow/Tests/check_fli_overflow.py

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

11 lines
253 B
Python
Raw Normal View History

from __future__ import annotations
from PIL import Image
TEST_FILE = "Tests/images/fli_overflow.fli"
2020-03-28 04:51:28 +03:00
def test_fli_overflow():
# this should not crash with a malloc error or access violation
with Image.open(TEST_FILE) as im:
im.load()