[testsuite] Add reproducer for #378/CVE-2018-14046 to the testsuite

This commit is contained in:
Dan Čermák
2018-07-09 05:37:11 +02:00
parent 6a203c70c0
commit f522cbf460
2 changed files with 19 additions and 0 deletions
@@ -0,0 +1,19 @@
# -*- coding: utf-8 -*-
import system_tests
class WebpDecodeChunksOutOfBoundsRead(metaclass=system_tests.CaseMeta):
url = "https://github.com/Exiv2/exiv2/issues/378"
filename = "$data_path/issue_378_1-poc-heapoverflow"
commands = ["$exiv2 -pp $filename"]
stdout = [""]
stderr = [
"""$exiv2_exception_message $filename:
$kerCorruptedMetadata
"""
]
retval = [1]