Fix #1011 fix_1011_jp2_readmetadata_loop

This commit is contained in:
clanmills
2019-10-01 17:39:44 +01:00
committed by Luis Diaz Mas
parent a30027c64a
commit 1b917c3f7d
4 changed files with 35 additions and 7 deletions
+2 -2
View File
@@ -11,7 +11,7 @@ class TestCvePoC(metaclass=system_tests.CaseMeta):
filename = "$data_path/poc_2017-12-12_issue188"
commands = ["$exiv2 " + filename]
stdout = [""]
stderr = ["""$exiv2_overflow_exception_message """ + filename + """:
$addition_overflow_message
stderr = ["""$exiv2_exception_message """ + filename + """:
$kerCorruptedMetadata
"""]
retval = [1]
+13
View File
@@ -0,0 +1,13 @@
# -*- coding: utf-8 -*-
from system_tests import CaseMeta, path
class Test_issue_1011(metaclass=CaseMeta):
filename = path("$data_path/Jp2Image_readMetadata_loop.poc")
commands = ["$exiv2 " + filename]
stdout = [""]
stderr = ["""$exiv2_exception_message """ + filename + """:
$kerCorruptedMetadata
"""]
retval = [1]