Check for integer overflows in mrwimage.cpp

This commit is contained in:
Kevin Backhouse
2019-07-05 15:41:14 +01:00
parent 1a9bae4f44
commit cb7dc5a528
3 changed files with 36 additions and 7 deletions
+21
View File
@@ -0,0 +1,21 @@
# -*- coding: utf-8 -*-
from system_tests import CaseMeta, path
class OutOfBoundsReadInIptcParserDecode(metaclass=CaseMeta):
"""
Regression test for the bug described in:
https://github.com/Exiv2/exiv2/pull/943
"""
url = "https://github.com/Exiv2/exiv2/pull/943"
filename = path("$data_path/issue_943_poc.mrm")
commands = ["$exiv2 $filename"]
stdout = [""]
stderr = [
"""Exiv2 exception in print action for file $filename:
Failed to read image data
"""
]
retval = [1]