Skip to content

Commit

Permalink
Add reproducer for #262 to the test suite
Browse files Browse the repository at this point in the history
This fixes #262
  • Loading branch information
D4N committed Aug 30, 2018
1 parent a56714b commit 5940c6f
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
Binary file added test/data/7-printIFD-divbyzero-1
Binary file not shown.
24 changes: 24 additions & 0 deletions tests/bugfixes/github/test_issue_262.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# -*- coding: utf-8 -*-

import system_tests


class DivByZeroInPrintIFD(metaclass=system_tests.CaseMeta):

url = "https://github.com/Exiv2/exiv2/issues/262"

filename = system_tests.path(
"$data_path/7-printIFD-divbyzero-1"
)
commands = ["$exiv2 -pX $filename"]
stdout = [
"""STRUCTURE OF BIGTIFF FILE $filename
address | tag | type | count | offset | value
"""
]
stderr = [
"""$exiv2_exception_message $filename:
$kerInvalidMalloc
"""
]
retval = [1]

0 comments on commit 5940c6f

Please sign in to comment.