diff --git a/test/data/issue_742_poc b/test/data/issue_742_poc new file mode 100644 index 00000000..6b5eb689 Binary files /dev/null and b/test/data/issue_742_poc differ diff --git a/tests/bugfixes/github/test_issue_742.py b/tests/bugfixes/github/test_issue_742.py new file mode 100644 index 00000000..6aa4a339 --- /dev/null +++ b/tests/bugfixes/github/test_issue_742.py @@ -0,0 +1,14 @@ +import system_tests + + +class ThrowsWhenSubBoxLengthIsNotGood(metaclass=system_tests.CaseMeta): + + url = "https://github.com/Exiv2/exiv2/issues/742" + + filename = system_tests.path("$data_path/issue_742_poc") + commands = ["$exiv2 -pX $filename"] + stdout = [""] + stderr = ["""$exiv2_exception_message """ + filename + """: +$kerCorruptedMetadata +"""] + retval = [1]