[tests] Add regression test for #756

This commit is contained in:
Dan Čermák
2019-03-25 23:56:57 +01:00
parent 5e6c2855ce
commit 7bd929de31
2 changed files with 20 additions and 0 deletions
Binary file not shown.

After

Width:  |  Height:  |  Size: 7.6 KiB

+20
View File
@@ -0,0 +1,20 @@
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 -pt --grep AFFocusPos $filename"]
stdout = [
"""Exif.Nikon1.AFFocusPos Undefined 4 Invalid value; Center
"""
]
stderr = [""]
retval = [0]
compare_stderr = system_tests.check_no_ASAN_UBSAN_errors