Skip to content

Commit

Permalink
Regression test for Exiv2#1845
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinbackhouse committed Aug 5, 2021
1 parent 4f15518 commit 565acf9
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
Binary file added test/data/issue_1845_poc.jp2
Binary file not shown.
17 changes: 17 additions & 0 deletions tests/bugfixes/github/test_issue_1845.py
@@ -0,0 +1,17 @@
# -*- coding: utf-8 -*-

from system_tests import CaseMeta, CopyTmpFiles, path
@CopyTmpFiles("$data_path/issue_1845_poc.jp2")

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

filename = path("$tmp_path/issue_1845_poc.jp2")
commands = ["$exiv2 -q -D +1 ad $filename"]
stderr = [""]
stdout = [""]
retval = [0]

0 comments on commit 565acf9

Please sign in to comment.