Add reproducer for #170 to the test suite

This commit is contained in:
Dan Čermák
2018-02-14 23:17:26 +01:00
parent 751fba8b54
commit cabf756553
2 changed files with 17 additions and 0 deletions
Binary file not shown.

After

Width:  |  Height:  |  Size: 216 B

+17
View File
@@ -0,0 +1,17 @@
# -*- coding: utf-8 -*-
import system_tests
class decodeIHDRChunkOutOfBoundsRead(system_tests.Case):
url = "https://github.com/Exiv2/exiv2/issues/170"
filename = "{data_path}/issue_170_poc"
commands = ["{exiv2} " + filename]
stdout = [""]
stderr = ["""{exiv2_exception_msg} """ + filename + """:
{kerFailedToReadImageData}
"""]
retval = [1]