Fedora Account System
Red Hat Associate
Red Hat Customer
Description of problem: Attempting to read broken images (with EXIF.process_file()) can result in endless loops. Version-Release number of selected component (if applicable): python-exif-1.1.0-2.fc19.noarch How reproducible: Reproducible Steps to Reproduce: 1. wget https://github.com/ianare/exif-samples/raw/master/jpg/invalid/image00971.jpg 2a. python -c 'import EXIF; EXIF.process_file(open("image00971.jpg", "rb"))' OR: 2b. python -c 'import EXIF; EXIF.process_file(open("image00971.jpg", "rb"), debug=True)' Actual results: Endless loop, one CPU core hot (100%). With 2b), kilometers of: [...] Segment base 0x8B88 Unexpected/unhandled segment type or file content. Got Segment base 0x8B88 Unexpected/unhandled segment type or file content. Got Segment base 0x8B88 Unexpected/unhandled segment type or file content. Got Segment base 0x8B88 Unexpected/unhandled segment type or file content. Got Segment base 0x8B88 Unexpected/unhandled segment type or file content. Got Segment base 0x8B88 [...] Expected results: Nothing, immediate return. Additional info:
Upstream issue: https://github.com/ianare/exif-py/pull/10 Upstream commit fixing the issue: https://github.com/ianare/exif-py/commit/dbb7f291ec1e31ef256f3c3287cb376492402a7d This is included in version 1.2.0 and later (1.3.3 is current). Newer tarballs seem to be in a different place than the download URL in the spec file, and it doesn't seem very RPM spec friendly (i.e. the URL's basename doesn't match the actual filename of the tarball): https://github.com/ianare/exif-py/archive/1.3.3.tar.gz
python-exif-1.3.3-1.fc19 has been submitted as an update for Fedora 19. https://admin.fedoraproject.org/updates/python-exif-1.3.3-1.fc19
python-exif-1.3.3-1.fc18 has been submitted as an update for Fedora 18. https://admin.fedoraproject.org/updates/python-exif-1.3.3-1.fc18
Thanks for the quick fix!
Package python-exif-1.3.3-1.fc19: * should fix your issue, * was pushed to the Fedora 19 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing python-exif-1.3.3-1.fc19' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2013-14690/python-exif-1.3.3-1.fc19 then log in and leave karma (feedback).
python-exif-1.3.3-1.fc19 has been pushed to the Fedora 19 stable repository. If problems still persist, please make note of it in this bug report.
python-exif-1.3.3-1.fc18 has been pushed to the Fedora 18 stable repository. If problems still persist, please make note of it in this bug report.