[tracker/rss-enclosures] NB#185950 - Crash in gif extractor.
- From: Roberto Guido <rguido src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/rss-enclosures] NB#185950 - Crash in gif extractor.
- Date: Wed, 24 Nov 2010 01:22:02 +0000 (UTC)
commit d2926d6b918cc30e0e3eaa0a88eca0883f555664
Author: Carlos Garnacho <carlosg gnome org>
Date: Tue Aug 17 14:57:03 2010 +0200
NB#185950 - Crash in gif extractor.
Check for the first char before assuming the second is valid memory.
src/tracker-extract/tracker-extract-gif.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/tracker-extract/tracker-extract-gif.c b/src/tracker-extract/tracker-extract-gif.c
index 7759489..c5a7693 100644
--- a/src/tracker-extract/tracker-extract-gif.c
+++ b/src/tracker-extract/tracker-extract-gif.c
@@ -138,7 +138,7 @@ read_metadata (TrackerSparqlBuilder *preupdate,
return;
}
#if defined(HAVE_EXEMPI)
- if (ExtData &&
+ if (ExtData && *ExtData &&
strncmp(&ExtData[1],"XMP Data",8) == 0) {
while (ExtData != NULL && status == GIF_OK ) {
if ((status = DGifGetExtensionNext(gifFile, &ExtData)) == GIF_OK) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]