[Digikam-devel] [Bug 136855] Editing metadata on a few selected imagefiles and clicking forward or apply crashes digikam.
Andreas Huggel
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.
http://bugs.kde.org/show_bug.cgi?id=136855
------- 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)
{
try
{
if (!data.isEmpty())
{
d->exifMetadata.load((const Exiv2::byte*)data.data(), data.size());
^---------------- test if return value is 0
return true;
}
}
catch( Exiv2::Error &e )
...
-ahu
More information about the Digikam-devel
mailing list