[testsuite] Add reproducers for #263
This issue got resolved by #180 and #461.
This commit is contained in:
parent
d224f897b0
commit
f6d775b400
BIN
test/data/10-printStructure-outbound-read-2
Normal file
BIN
test/data/10-printStructure-outbound-read-2
Normal file
Binary file not shown.
BIN
test/data/9-printStructure-outbound-read-1
Normal file
BIN
test/data/9-printStructure-outbound-read-1
Normal file
Binary file not shown.
20
tests/bugfixes/github/test_issue_263.py
Normal file
20
tests/bugfixes/github/test_issue_263.py
Normal file
@ -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
Block a user