Skip to content
/ exiv2 Public
forked from Exiv2/exiv2

Commit

Permalink
Regression test for Exiv2#1881
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinbackhouse committed Aug 27, 2021
1 parent f9248f9 commit 218ad98
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
Binary file added test/data/issue_1881_poc.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
20 changes: 20 additions & 0 deletions tests/bugfixes/github/test_issue_1881.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# -*- coding: utf-8 -*-

from system_tests import CaseMeta, CopyTmpFiles, path
@CopyTmpFiles("$data_path/issue_1881_poc.jpg")

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

filename = path("$tmp_path/issue_1881_poc.jpg")
commands = ["$exiv2 -q -d I rm $filename"]
stdout = [""]
stderr = [
"""Exiv2 exception in erase action for file $filename:
$kerCorruptedMetadata
"""]
retval = [1]

0 comments on commit 218ad98

Please sign in to comment.