Merge pull request #205 from D4N/CVE-2017-1000127_reproducer
Added reproducer for CVE-2017-1000127
This commit is contained in:
commit
efee9a2b58
BIN
test/data/heap-oob-write.tiff
Normal file
BIN
test/data/heap-oob-write.tiff
Normal file
Binary file not shown.
16
tests/bugfixes/github/test_CVE_2017_1000127.py
Normal file
16
tests/bugfixes/github/test_CVE_2017_1000127.py
Normal file
@ -0,0 +1,16 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
import system_tests
|
||||
|
||||
|
||||
class TestPoC(system_tests.Case):
|
||||
|
||||
url = "https://github.com/Exiv2/exiv2/issues/176"
|
||||
|
||||
filename = "{data_path}/heap-oob-write.tiff"
|
||||
commands = ["{exiv2} " + filename]
|
||||
stdout = [""]
|
||||
stderr = ["""{exiv2_exception_msg} """ + filename + """:
|
||||
{error_57_message}
|
||||
"""]
|
||||
retval = [1]
|
||||
Loading…
Reference in New Issue
Block a user