[Digikam-devel] [Bug 136855] Editing metadata on a few selected imagefiles and clicking forward or apply crashes digikam.
ahuggel at gmx.net
Fri Nov 17 05:58:38 GMT 2006
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
------- Additional Comments From ahuggel gmx net 2006-11-17 06:58 -------
And what happens is this:
In setExif, the call to d->exifMetadata.load() does not succeed (as expected, since it's called with IPTC data), and returns 1 to indicate a problem, which the caller does not test. Instead it assumes everything is fine, but d->exifMetadata is in an inconsistent state now, which causes the subsequent Image::writeMetadata call to crash.
bool Exiv2Iface::setExif(const QByteArray& data)
d->exifMetadata.load((const Exiv2::byte*)data.data(), data.size());
^---------------- test if return value is 0
catch( Exiv2::Error &e )
More information about the Digikam-devel