Skip to content

Commit

Permalink
Add regression test for Exiv2#366 to the testsuite
Browse files Browse the repository at this point in the history
  • Loading branch information
D4N committed Jun 11, 2018
1 parent 9e691f5 commit afa88e4
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
Binary file added test/data/2-out-of-read-Poc
Binary file not shown.
19 changes: 19 additions & 0 deletions tests/bugfixes/github/test_issue_366.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# -*- coding: utf-8 -*-

import system_tests


class AdditionOverflowInLoaderTiffGetData(metaclass=system_tests.CaseMeta):
"""
Regression test for bug #366:
https://github.com/Exiv2/exiv2/issues/366
"""
filename = system_tests.path("$data_path/2-out-of-read-Poc")
commands = ["$exiv2 -ep $filename"]
stdout = [""]
stderr = [
"""Warning: Directory Image, entry 0x0111: Strip 0 is outside of the data area; ignored.
$uncaught_exception $addition_overflow_message
"""
]
retval = [1]

0 comments on commit afa88e4

Please sign in to comment.