You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
602 B
Python
25 lines
602 B
Python
# -*- coding: utf-8 -*-
|
|
|
|
import system_tests
|
|
|
|
|
|
URL = "https://github.com/Exiv2/exiv2/issues/590"
|
|
|
|
|
|
@system_tests.CopyFiles("$data_path/tiffimage_int-out-of-bound-read-poc-2")
|
|
class TiffImageIntOutOfBoundsRead(metaclass=system_tests.CaseMeta):
|
|
"""
|
|
Regression test for the second issue reported in #590.
|
|
"""
|
|
|
|
filename = system_tests.path(
|
|
"$data_path/tiffimage_int-out-of-bound-read-poc-2_copy"
|
|
)
|
|
|
|
compare_stderr = system_tests.check_no_ASAN_UBSAN_errors
|
|
|
|
commands = ["$exiv2 -Y 2011 -O 02 -D 29 adjust $filename"]
|
|
stdout = [""]
|
|
stderr = [""]
|
|
retval = [0]
|