Add regression test for #742

(cherry picked from commit 885dd2a7437b946c975f2a37c9ccaecc1b91fc95)
This commit is contained in:
Luis Diaz Mas 2019-03-27 07:41:23 +01:00
parent 25ddbaa6c0
commit f33d8daaa0
2 changed files with 14 additions and 0 deletions

BIN
test/data/issue_742_poc Normal file

Binary file not shown.

View File

@ -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]