Prevent out-of-bounds read. (#868)
parent
6068df4c01
commit
9092b422e6
Binary file not shown.
@ -0,0 +1,26 @@
|
||||
# -*- 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]
|
Loading…
Reference in New Issue