Add reproducer for #262 to the test suite
parent
2b74ad4feb
commit
19bb57ff25
Binary file not shown.
@ -0,0 +1,25 @@
|
|||||||
|
# -*- 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
|
||||||
|
10 | 0x0008 FlashSetting | unknown | 0 | |
|
||||||
|
"""
|
||||||
|
]
|
||||||
|
stderr = [
|
||||||
|
"""$exiv2_exception_message $filename:
|
||||||
|
$kerCorruptedMetadata
|
||||||
|
"""
|
||||||
|
]
|
||||||
|
retval = [1]
|
Loading…
Reference in New Issue