diff --git a/test/data/7-printIFD-divbyzero-1 b/test/data/7-printIFD-divbyzero-1 new file mode 100644 index 0000000000..3a095024df Binary files /dev/null and b/test/data/7-printIFD-divbyzero-1 differ diff --git a/tests/bugfixes/github/test_issue_262.py b/tests/bugfixes/github/test_issue_262.py new file mode 100644 index 0000000000..618286821c --- /dev/null +++ b/tests/bugfixes/github/test_issue_262.py @@ -0,0 +1,24 @@ +# -*- coding: utf-8 -*- + +import system_tests + + +class DivByZeroInPrintIFD(metaclass=system_tests.CaseMeta): + + url = "https://github.com/Exiv2/exiv2/issues/262" + + filename = system_tests.path( + "$data_path/7-printIFD-divbyzero-1" + ) + commands = ["$exiv2 -pX $filename"] + stdout = [ + """STRUCTURE OF BIGTIFF FILE $filename + address | tag | type | count | offset | value +""" + ] + stderr = [ + """$exiv2_exception_message $filename: +$kerInvalidMalloc +""" + ] + retval = [1]