Blame tests/bugfixes/github/test_CVE_2017_11592.py
Branch: 21b5d1ac9102b4b30a512b730a87f8b3f5954682
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/56"
Packit Service
21b5d1
Packit Service
21b5d1
filename = "$data_path/POC9"
Packit Service
21b5d1
commands = ["$exiv2 $filename"]
Packit Service
21b5d1
stdout = [
Packit Service
21b5d1
"""File name : $filename
Packit Service
21b5d1
File size : 523 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: Upper boundary of data for directory Image, entry 0x02bc is out of bounds: Offset = 0x00000001, size = 5852, exceeds buffer size by 5330 Bytes; truncating the entry
Packit Service
21b5d1
Error: Directory Thumbnail: Next pointer is out of bounds; ignored.
Packit Service
21b5d1
Error: Directory Thumbnail, entry 0x02bc has invalid size 4294967295*2; skipping entry.
Packit Service
21b5d1
"""
Packit Service
21b5d1
]
Packit Service
21b5d1
retval = [0]