You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
exiv2/tests/bugfixes/github/test_CVE_2017_14862.py

24 lines
549 B
Python

# -*- coding: utf-8 -*-
import system_tests
from system_tests import check_no_ASAN_UBSAN_errors
class TestCvePoC(metaclass=system_tests.CaseMeta):
url = "https://github.com/Exiv2/exiv2/issues/75"
filename = "$data_path/008-invalid-mem"
commands = ["$exiv2 -q " + filename]
if system_tests.BT.Config.is_64bit:
stderr = [""]
retval = [0]
else:
stderr = ["""$exiv2_exception_message """ + filename + """:
$kerCorruptedMetadata
"""]
retval = [1]
compare_stdout = check_no_ASAN_UBSAN_errors