Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
FLI overflow error fix and testcase CVE-2016-0775
- Loading branch information
Showing
3 changed files
with
17 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,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() |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters