Add reproducer for CVE-2017-1000126 to the test suite
parent
3c20cc06a9
commit
48982697b0
Binary file not shown.
@ -0,0 +1,16 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
import system_tests
|
||||
|
||||
|
||||
class TestCvePoC(system_tests.Case):
|
||||
|
||||
url = "https://github.com/Exiv2/exiv2/issues/175"
|
||||
|
||||
filename = "{data_path}/cve_2017_1000126_stack-oob-read.webp"
|
||||
commands = ["{exiv2} " + filename]
|
||||
stdout = [""]
|
||||
stderr = ["""{exiv2_exception_msg} """ + filename + """:
|
||||
{kerCorruptedMetadata}
|
||||
"""]
|
||||
retval = [1]
|
Loading…
Reference in New Issue