Blame tests/bugfixes/github/test_CVE_2017_17725.py

Packit Service 21b5d1
# -*- coding: utf-8 -*-
Packit Service 21b5d1
Packit Service 21b5d1
import system_tests
Packit Service 21b5d1
Packit Service 21b5d1
Packit Service 21b5d1
class TestCvePoC(metaclass=system_tests.CaseMeta):
Packit Service 21b5d1
Packit Service 21b5d1
    url = "https://github.com/Exiv2/exiv2/issues/188"
Packit Service 21b5d1
    found_by = ["Wei You", "@youwei1988"]
Packit Service 21b5d1
Packit Service 21b5d1
    filename = "$data_path/poc_2017-12-12_issue188"
Packit Service 21b5d1
    commands = ["$exiv2 " + filename]
Packit Service 21b5d1
    stdout = [""]
Packit Service 21b5d1
    stderr = ["""$exiv2_overflow_exception_message """ + filename + """:
Packit Service 21b5d1
$addition_overflow_message
Packit Service 21b5d1
"""]
Packit Service 21b5d1
    retval = [1]