Skip to content

Commit

Permalink
Regression test for #1570.
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinbackhouse committed Apr 19, 2021
1 parent f9cf51c commit 0d97b85
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
Binary file added test/data/issue_1570_poc.bmff
Binary file not shown.
19 changes: 19 additions & 0 deletions tests/bugfixes/github/test_issue_1570.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# -*- coding: utf-8 -*-

from system_tests import CaseMeta, path


class BmffImageReadMetadataOutOfBoundsRead(metaclass=CaseMeta):
"""
Regression test for the bug described in:
https://github.com/Exiv2/exiv2/issues/1570
"""
url = "https://github.com/Exiv2/exiv2/issues/1570"

filename = path("$data_path/issue_1570_poc.bmff")
commands = ["$exiv2 $filename"]
stdout = [""]
stderr = [
"""$filename1: Could not write metadata to file: $kerCorruptedMetadata
"""]
retval = [1]

0 comments on commit 0d97b85

Please sign in to comment.