Add reproducer for #400 to the test suite
parent
35b3e596ed
commit
dadd1d19f9
Binary file not shown.
After Width: | Height: | Size: 372 B |
Binary file not shown.
After Width: | Height: | Size: 8.6 KiB |
@ -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
|
Loading…
Reference in New Issue