diff --git a/test/data/issue_1912_poc.jpg b/test/data/issue_1912_poc.jpg new file mode 100644 index 00000000..837d2ebb Binary files /dev/null and b/test/data/issue_1912_poc.jpg differ diff --git a/tests/bugfixes/github/test_issue_1912.py b/tests/bugfixes/github/test_issue_1912.py new file mode 100644 index 00000000..de496a6a --- /dev/null +++ b/tests/bugfixes/github/test_issue_1912.py @@ -0,0 +1,17 @@ +# -*- coding: utf-8 -*- + +from system_tests import CaseMeta, path, check_no_ASAN_UBSAN_errors + +class TagsIntPrint0x0007IntegerOverflow(metaclass=CaseMeta): + """ + Regression test for the bug described in: + https://github.com/Exiv2/exiv2/issues/1912 + """ + url = "https://github.com/Exiv2/exiv2/issues/1912" + + filename = path("$data_path/issue_1912_poc.jpg") + commands = ["$exiv2 -q -Pt $filename"] + stderr = [""] + retval = [0] + + compare_stdout = check_no_ASAN_UBSAN_errors