diff --git a/test/data/issue_2268_poc.jp2 b/test/data/issue_2268_poc.jp2 new file mode 100644 index 00000000..64fb231c Binary files /dev/null and b/test/data/issue_2268_poc.jp2 differ diff --git a/tests/bugfixes/github/test_issue_2268.py b/tests/bugfixes/github/test_issue_2268.py new file mode 100644 index 00000000..d678fea2 --- /dev/null +++ b/tests/bugfixes/github/test_issue_2268.py @@ -0,0 +1,13 @@ +# -*- coding: utf-8 -*- + +from system_tests import CaseMeta, check_no_ASAN_UBSAN_errors + +class issue_2268_jp2_assert(metaclass=CaseMeta): + url = "https://github.com/Exiv2/exiv2/issues/2268" + filename = "$data_path/issue_2268_poc.jp2" + commands = ["$exiv2 -pS $filename"] + retval = [1] + stderr = ["""$exiv2_exception_message $filename: +$kerCorruptedMetadata +"""] + compare_stdout = check_no_ASAN_UBSAN_errors