Skip to content

Commit

Permalink
Regression test for Exiv2#2268
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinbackhouse committed Jul 6, 2022
1 parent 575395f commit e416548
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
Binary file added test/data/issue_2268_poc.jp2
Binary file not shown.
13 changes: 13 additions & 0 deletions tests/bugfixes/github/test_issue_2268.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# -*- coding: utf-8 -*-

from system_tests import CaseMeta, check_no_ASAN_UBSAN_errors

class issue_2268_jp2_assert(metaclass=CaseMeta):
url = "https://github.com/Exiv2/exiv2/issues/2268"
filename = "$data_path/issue_2268_poc.jp2"
commands = ["$exiv2 -pS $filename"]
retval = [1]
stderr = ["""$exiv2_exception_message $filename:
$kerCorruptedMetadata
"""]
compare_stdout = check_no_ASAN_UBSAN_errors

0 comments on commit e416548

Please sign in to comment.