Skip to content

Commit

Permalink
[tests] Add regression test for #756
Browse files Browse the repository at this point in the history
  • Loading branch information
D4N authored and clanmills committed Mar 29, 2019
1 parent b40f5f0 commit 1a564a4
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
Binary file added test/data/NikonMakerNotePrint0x088_overread
Binary file not shown.
20 changes: 20 additions & 0 deletions tests/bugfixes/github/test_issue_756.py
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 1a564a4

Please sign in to comment.