Note that the failing tests that had to be adapted were bad formed files from FUZZERs. We should not consider invalid markers like 0x00 or 0x52 but only undefined APPn markers.
18 lines
501 B
Python
18 lines
501 B
Python
import system_tests
|
|
|
|
class BufferOverReadInNikon1MakerNotePrint0x0088(
|
|
metaclass=system_tests.CaseMeta):
|
|
|
|
url = "https://github.com/Exiv2/exiv2/issues/756"
|
|
|
|
filename = system_tests.path(
|
|
"$data_path/NikonMakerNotePrint0x088_overread"
|
|
)
|
|
commands = ["$exiv2 -q -pt --grep AFFocusPos $filename"]
|
|
stderr = ["""$exiv2_exception_message """ + filename + """:
|
|
$kerFailedToReadImageData
|
|
"""]
|
|
retval = [1]
|
|
|
|
compare_stderr = system_tests.check_no_ASAN_UBSAN_errors
|