[Digikam-devel] [Bug 130525] Saving large (>5M) jpg's result in corrupt file

Andreas Huggel ahuggel at gmx.net
Thu Jul 13 18:00:54 BST 2006


------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
         
http://bugs.kde.org/show_bug.cgi?id=130525         




------- Additional Comments From ahuggel gmx net  2006-07-13 19:00 -------
Ok, this is a bug in Exiv2. In the (old) version of dmetaloader.cpp that I have here, digikam uses (Jpeg)Image::writeMetadata and that function does not check the size of the segment (around line 500 of jpegimage.cpp); the result is a corrupted JPEG image as reported.
The fix in Exiv2 will probably simply be to throw an exception and digikam will need to either proactively check the size of the IPTC data or handle the exception.

Unfortunately, I don't have time to fix this immediately (Gilles please feel free to do so if you have more time), I can only do it next week.

Andreas



More information about the Digikam-devel mailing list