Skip to content

Commit

Permalink
[tests] Add regression test for Exiv2#1019
Browse files Browse the repository at this point in the history
  • Loading branch information
D4N authored and 1div0 committed Jun 7, 2020
1 parent af86dba commit 035ddb6
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
Binary file added test/data/POC-file_issue_1019
Binary file not shown.
14 changes: 14 additions & 0 deletions tests/bugfixes/github/test_issue_1019.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
from system_tests import CaseMeta, path


class OverreadInCiffDirectoryReadDirectory(metaclass=CaseMeta):

filename = path("$data_path/POC-file_issue_1019")
commands = ["$exiv2 -pv $filename"]
stdout = [""]
stderr = [
"""$exiv2_exception_message $filename:
$kerOffsetOutOfRange
"""
]
retval = [1]
1 change: 1 addition & 0 deletions tests/suite.conf
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ largeiptc_test: ${ENV:exiv2_path}/largeiptc-test${ENV:binary_extension}
easyaccess_test: ${ENV:exiv2_path}/easyaccess-test${ENV:binary_extension}

[variables]
kerOffsetOutOfRange: Offset out of range
kerFailedToReadImageData: Failed to read image data
kerCorruptedMetadata: corrupted image metadata
kerInvalidMalloc: invalid memory allocation request
Expand Down

0 comments on commit 035ddb6

Please sign in to comment.