diff --git a/test/data/cve_2017_1000126_stack-oob-read.webp b/test/data/cve_2017_1000126_stack-oob-read.webp new file mode 100644 index 00000000..415c5fa6 Binary files /dev/null and b/test/data/cve_2017_1000126_stack-oob-read.webp differ diff --git a/tests/bugfixes/github/test_CVE_2017_1000126.py b/tests/bugfixes/github/test_CVE_2017_1000126.py new file mode 100644 index 00000000..c5f766e2 --- /dev/null +++ b/tests/bugfixes/github/test_CVE_2017_1000126.py @@ -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]