File: check_fli_overflow.py

package info (click to toggle)
python-imaging 1.1.7-2%2Bdeb6u2
  • links: PTS
  • area: main
  • in suites: squeeze-lts
  • size: 2,424 kB
  • ctags: 3,401
  • sloc: ansic: 19,470; python: 11,002; makefile: 111
file content (16 lines) | stat: -rw-r--r-- 368 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
from helper import unittest, PillowTestCase
from PIL import Image

TEST_FILE = "Tests/images/fli_overflow.fli"


class TestFliOverflow(PillowTestCase):
    def test_fli_overflow(self):

        # this should not crash with a malloc error or access violation
        im = Image.open(TEST_FILE)
        im.load()
        

if __name__ == '__main__':
    unittest.main()