Skip to content

Commit

Permalink
[testsuite] Add reproducers for Exiv2#263
Browse files Browse the repository at this point in the history
This issue got resolved by Exiv2#180 and Exiv2#461.
  • Loading branch information
D4N committed Oct 11, 2018
1 parent 093a619 commit 0fca78e
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 0 deletions.
Binary file added test/data/10-printStructure-outbound-read-2
Binary file not shown.
Binary file added test/data/9-printStructure-outbound-read-1
Binary file not shown.
20 changes: 20 additions & 0 deletions tests/bugfixes/github/test_issue_263.py
@@ -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

0 comments on commit 0fca78e

Please sign in to comment.