Add reproducer for #400 to the test suite

This commit is contained in:
Dan Čermák
2018-08-17 16:49:27 +02:00
parent 35b3e596ed
commit dadd1d19f9
3 changed files with 22 additions and 0 deletions
+22
View File
@@ -0,0 +1,22 @@
# -*- coding: utf-8 -*-
import system_tests
class parseTXTChunkOutOfBoundsRead(metaclass=system_tests.CaseMeta):
url = "https://github.com/Exiv2/exiv2/issues/400"
filenames = [
system_tests.path("$data_path/issue_400_poc" + str(i)) for i in (1, 2)
]
commands = ["$exiv2 " + fname for fname in filenames]
stdout = [""] * 2
stderr = [
"""$exiv2_exception_message """ + fname + """:
$kerCorruptedMetadata
"""
for fname in filenames
]
retval = [1] * 2