[Digikam-devel] [Bug 134999] crash in exiv2 when searching for new images

Marcel Wiesweg marcel.wiesweg at gmx.de
Wed Dec 13 22:03:32 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=134999         




------- Additional Comments From marcel.wiesweg gmx de  2006-12-13 23:03 -------
Created an attachment (id=18923)
 --> (http://bugs.kde.org/attachment.cgi?id=18923&action=view)
Fix for QLatin15Codec

Please test if this patch fixes the problem.
As far as I can see, it's a problem of the QLatin15Codec. It uses
QString::fromLatin1 internally. The returned string is only as long as strlen
returns. However, the length parameter passed to toUnicode is sometimes longer,
especially with image comments which contain only 256 "\0". The buffer has
length 0, QLatin15Codec does not check this again, believes it is 256 bytes.



More information about the Digikam-devel mailing list