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

44 lines
873 B
Python

# -*- coding: utf-8 -*-
import system_tests
class TestPoC(metaclass=system_tests.CaseMeta):
url = "https://github.com/Exiv2/exiv2/issues/176"
filename = "$data_path/heap-oob-write.tiff"
commands = ["$exiv2 $filename"]
stdout = [
"""File name : $filename
File size : 310 Bytes
MIME type : image/tiff
Image size : 200 x 130
Thumbnail : None
Camera make :
Camera model :
Image timestamp :
File number :
Exposure time :
Aperture :
Exposure bias :
Flash :
Flash bias :
Focal length :
Subject distance:
ISO speed :
Exposure mode :
Metering mode :
Macro mode :
Image quality :
White balance :
Copyright :
Exif comment :
"""
]
stderr = ["ignored"]
retval = [0]
compare_stderr = system_tests.check_no_ASAN_UBSAN_errors