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_9953.py

23 lines
491 B
Python

# -*- coding: utf-8 -*-
import system_tests
class TestCvePoC(metaclass=system_tests.CaseMeta):
url = "https://github.com/Exiv2/exiv2/issues/144"
filename = "$data_path/POC1"
commands = ["$exiv2 $filename"]
stdout = [
"""File name : $filename
File size : 26 Bytes
MIME type : image/tiff
Image size : 0 x 0
"""
]
stderr = [""]
retval = ["$no_exif_data_found_retval"]
compare_stderr = system_tests.check_no_ASAN_UBSAN_errors