[Digikam-devel] [Bug 110214] digikam hangs scanning items right after start
Tom Albers
tomalbers at kde.nl
Fri Aug 5 17:40:25 BST 2005
------- 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=110214
tomalbers kde nl changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
------- Additional Comments From tomalbers kde nl 2005-08-05 18:40 -------
SVN commit 443276 by toma:
This fixes an endless loop in the scanning of images. Continue was called without updating a first, so it arrives again at the same continue.
BUG: 110214
M +8 -2 jpegmetadata.cpp
--- trunk/extragear/graphics/digikam/libs/jpegutils/jpegmetadata.cpp #443275:443276
@ -84,7 +84,10 @
if (marker->marker == M_COM)
{
if (!marker->data || !marker->data_length)
+ {
+ marker=marker->next;
continue;
+ }
comments = QString::fromAscii((const char*)marker->data,
marker->data_length);
@ -94,17 +97,20 @
KExifData exifData;
if (!exifData.readFromData((char*)marker->data,
marker->data_length))
+ {
+ marker=marker->next;
continue;
+ }
datetime = exifData.getExifDateTime();
}
marker = marker->next;
}
-
+
jpeg_destroy_decompress(&srcinfo);
- fclose(input_file);
+ fclose(input_file);
}
}
More information about the Digikam-devel
mailing list