Bug #522

lightzone-created jpeg causes exif2 to segfault

Added by Markus Spring 978 days ago. Updated 455 days ago.

Status:Closed Start:
Priority:Normal Due date:
Assigned to:Andreas Huggel % Done:

0%

Category:exif
Target version:-

Description

exiv2 crashes reproducably when trying to modify a lightzone created jpg file.

Example file:

http://markus.spring.googlepages.com/x.jpg

Example command:

exiv2 -M"set Exif.Photo.UserComment charset=Ascii Neuer Kommentar" x.jpg

History

Updated by Andreas Huggel 977 days ago

The crash occurs when Exiv2 re-writes the IPTC data of the image. The photoshop IRB data of this image is not padded to even size. (It should be according to the specs.)

r1146 in SVN fixes the problem for the sample image provided.

If you have additional images with the same problem, please test this fix with all such images and report back if you still get crashes.

Thanks,
Andreas

Updated by Markus Spring 977 days ago

Checked the SVN successfully with > 20 similar images. Will do further testing and report if there are problems again.

Thanks for the quick fix!

Also available in: Atom PDF