diff --git a/test/data/heap-oob-write.tiff b/test/data/heap-oob-write.tiff new file mode 100644 index 00000000..5146aa21 Binary files /dev/null and b/test/data/heap-oob-write.tiff differ diff --git a/tests/bugfixes/github/test_CVE_2017_1000127.py b/tests/bugfixes/github/test_CVE_2017_1000127.py new file mode 100644 index 00000000..0fd12b8c --- /dev/null +++ b/tests/bugfixes/github/test_CVE_2017_1000127.py @@ -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]