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.
27 lines
656 B
Python
27 lines
656 B
Python
# -*- coding: utf-8 -*-
|
|
|
|
from system_tests import CaseMeta, path
|
|
|
|
|
|
class OutOfBoundsReadInIptcParserDecode(metaclass=CaseMeta):
|
|
"""
|
|
Regression test for the bug described in:
|
|
https://github.com/Exiv2/exiv2/issues/867
|
|
"""
|
|
url = "https://github.com/Exiv2/exiv2/issues/867"
|
|
|
|
filename = path("$data_path/issue_867_poc.psd")
|
|
commands = ["$exiv2 $filename"]
|
|
stdout = ["""File name : $filename
|
|
File size : 9830 Bytes
|
|
MIME type : image/x-photoshop
|
|
Image size : 150 x 91
|
|
"""
|
|
]
|
|
stderr = [
|
|
"""Warning: Failed to decode IPTC metadata.
|
|
$filename: No Exif data found in the file
|
|
"""
|
|
]
|
|
retval = [253]
|