Skip to content

Commit

Permalink
Regression test for #1815
Browse files Browse the repository at this point in the history
(cherry picked from commit 6e83bdd)
  • Loading branch information
kevinbackhouse authored and mergify-bot committed Aug 1, 2021
1 parent c65941c commit ed82e63
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
Binary file added test/data/issue_1815_poc.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
17 changes: 17 additions & 0 deletions tests/bugfixes/github/test_issue_1815.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# -*- coding: utf-8 -*-

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

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

filename = path("$tmp_path/issue_1815_poc.jpg")
commands = ["$exiv2 rm $filename"]
stdout = [""]
stderr = [""]
retval = [0]

0 comments on commit ed82e63

Please sign in to comment.