Add reproducer for CVE-2017-1000126 to the test suite

This commit is contained in:
Dan Čermák 2018-03-12 18:38:01 +01:00
parent 3c20cc06a9
commit 48982697b0
2 changed files with 16 additions and 0 deletions

Binary file not shown.

View File

@ -0,0 +1,16 @@
# -*- coding: utf-8 -*-
import system_tests
class TestCvePoC(system_tests.Case):
url = "https://github.com/Exiv2/exiv2/issues/175"
filename = "{data_path}/cve_2017_1000126_stack-oob-read.webp"
commands = ["{exiv2} " + filename]
stdout = [""]
stderr = ["""{exiv2_exception_msg} """ + filename + """:
{kerCorruptedMetadata}
"""]
retval = [1]