commit
d68f42a609
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -0,0 +1,24 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
|
import system_tests
|
||||||
|
|
||||||
|
|
||||||
|
class UncontrolledRecursion(metaclass=system_tests.CaseMeta):
|
||||||
|
url = "https://github.com/Exiv2/exiv2/issues/216"
|
||||||
|
|
||||||
|
filename = system_tests.path(
|
||||||
|
"$data_path/"
|
||||||
|
"exiv2_0-26_exiv2_uncontrolled-recursion_printIFDStructure.tif"
|
||||||
|
)
|
||||||
|
|
||||||
|
commands = ["$exiv2 -pR $filename"]
|
||||||
|
retval = [1]
|
||||||
|
stdout = [
|
||||||
|
"""STRUCTURE OF TIFF FILE (MM): $filename
|
||||||
|
address | tag | type | count | offset | value
|
||||||
|
10 | 0x0100 ImageWidth | SHORT | 1 | | 1
|
||||||
|
22 | 0x0103 Compression | SHORT | 0 | |
|
||||||
|
34 | 000000 GPSVersionID | BYTE | 0 | | """
|
||||||
|
]
|
||||||
|
|
||||||
|
compare_stderr = system_tests.check_no_ASAN_UBSAN_errors
|
@ -0,0 +1,20 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
|
import system_tests
|
||||||
|
|
||||||
|
|
||||||
|
class OutOfBoundsReadInPrintStructure(metaclass=system_tests.CaseMeta):
|
||||||
|
|
||||||
|
url = "https://github.com/Exiv2/exiv2/issues/263"
|
||||||
|
|
||||||
|
filenames = [
|
||||||
|
system_tests.path("$data_path/9-printStructure-outbound-read-1"),
|
||||||
|
system_tests.path("$data_path/10-printStructure-outbound-read-2")
|
||||||
|
]
|
||||||
|
|
||||||
|
commands = ["$exiv2 -pR " + fname for fname in filenames]
|
||||||
|
|
||||||
|
retval = [1] * 2
|
||||||
|
|
||||||
|
compare_stderr = system_tests.check_no_ASAN_UBSAN_errors
|
||||||
|
compare_stdout = system_tests.check_no_ASAN_UBSAN_errors
|
Loading…
Reference in New Issue