Blame tests/bugfixes/github/test_CVE_2017_11553.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/54"
Packit Service 21b5d1
Packit Service 21b5d1
    filename = "$data_path/POC7"
Packit Service 21b5d1
    commands = ["$exiv2 $filename"]
Packit Service 21b5d1
    stdout = [
Packit Service 21b5d1
        """File name       : $filename
Packit Service 21b5d1
File size       : 632 Bytes
Packit Service 21b5d1
MIME type       : image/tiff
Packit Service 21b5d1
Image size      : 0 x 0
Packit Service 21b5d1
Camera make     : 
Packit Service 21b5d1
Camera model    : 
Packit Service 21b5d1
Image timestamp : 
Packit Service 21b5d1
Image number    : 
Packit Service 21b5d1
Exposure time   : 
Packit Service 21b5d1
Aperture        : 
Packit Service 21b5d1
Exposure bias   : 
Packit Service 21b5d1
Flash           : 
Packit Service 21b5d1
Flash bias      : 
Packit Service 21b5d1
Focal length    : 
Packit Service 21b5d1
Subject distance: 
Packit Service 21b5d1
ISO speed       : 
Packit Service 21b5d1
Exposure mode   : 
Packit Service 21b5d1
Metering mode   : 
Packit Service 21b5d1
Macro mode      : 
Packit Service 21b5d1
Image quality   : 
Packit Service 21b5d1
Exif Resolution : 
Packit Service 21b5d1
White balance   : 
Packit Service 21b5d1
Thumbnail       : None
Packit Service 21b5d1
Copyright       : 
Packit Service 21b5d1
Exif comment    : 
Packit Service 21b5d1
Packit Service 21b5d1
"""
Packit Service 21b5d1
    ]
Packit Service 21b5d1
    stderr = [
Packit Service 21b5d1
        """Error: Directory Image, entry 0x0000 has invalid size 1229520896*8; skipping entry.
Packit Service 21b5d1
Error: Directory Image, entry 0x0000 has invalid size 1447624704*8; skipping entry.
Packit Service 21b5d1
Error: Directory Image, entry 0x0111 has invalid size 4294967295*2; skipping entry.
Packit Service 21b5d1
Warning: Directory Image, entry 0x0111: Size or data offset value not set, ignoring them.
Packit Service 21b5d1
"""
Packit Service 21b5d1
    ]
Packit Service 21b5d1
    retval = [0]