diff --git a/test/data/10-printStructure-outbound-read-2 b/test/data/10-printStructure-outbound-read-2 new file mode 100644 index 00000000..f0502caf Binary files /dev/null and b/test/data/10-printStructure-outbound-read-2 differ diff --git a/test/data/9-printStructure-outbound-read-1 b/test/data/9-printStructure-outbound-read-1 new file mode 100644 index 00000000..126928a4 Binary files /dev/null and b/test/data/9-printStructure-outbound-read-1 differ diff --git a/tests/bugfixes/github/test_issue_263.py b/tests/bugfixes/github/test_issue_263.py new file mode 100644 index 00000000..3f6799a9 --- /dev/null +++ b/tests/bugfixes/github/test_issue_263.py @@ -0,0 +1,20 @@ +# -*- coding: utf-8 -*- + +import system_tests + + +class OutOfBoundsReadInPrintStructure(metaclass=system_tests.CaseMeta): + + url = "https://github.com/Exiv2/exiv2/issues/263" + + filenames = [ + system_tests.path("$data_path/9-printStructure-outbound-read-1"), + system_tests.path("$data_path/10-printStructure-outbound-read-2") + ] + + commands = ["$exiv2 -pR " + fname for fname in filenames] + + retval = [1] * 2 + + compare_stderr = system_tests.check_no_ASAN_UBSAN_errors + compare_stdout = system_tests.check_no_ASAN_UBSAN_errors