You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
user@host:$ pip3 freeze | grep -i exifread
ExifRead==3.0.0
user@host:$ python3
Python 3.5.2 (default, Jan 26 2021, 13:30:48)
[GCC 5.4.0 20160609] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import exifread
>>> with open("exif_bug_file", 'rb') as file_handle:
... exifread.process_file(file_handle)
...
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.
The text was updated successfully, but these errors were encountered:
CrimsonGlory
changed the title
Infinite loop with 100%CPU and memory leak until MemoryError or OOM
Corrupted image causes huge resource consumption
May 9, 2023
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.
The text was updated successfully, but these errors were encountered: