Open CrimsonGlory opened 1 year ago
This appears to be caused by a blow-up in _process_field
https://github.com/ianare/exif-py/blob/develop/exifread/classes.py#L185
The count
value passed from _process_tag
for the MakerNote field is huge, 1006641184
.
https://github.com/ianare/exif-py/blob/develop/exifread/classes.py#L227
issue already noted as potentially malformed image or bug in s2n
https://github.com/ianare/exif-py/blob/develop/exifread/classes.py#L148
The following crafted image file causes latest version of exifread (3.0.0) to get into an infinite loop which starts using more memory until there is a MemoryError or Out of Memory. It was tested with:
File: https://www.mediafire.com/file/1nhu3axm8z23l5q/exifread_bug_file/file
To reproduce:
EDIT: my bad. It is not an infinite loop. Takes more than 30 minutes, around 8GB of memory, but it does finish. It will edit the title and leave the issue open just in case.