totem-pl-parser r299 - in branches/gnome-2-24: . plparse



Author: hadess
Date: Tue Feb 10 14:21:12 2009
New Revision: 299
URL: http://svn.gnome.org/viewvc/totem-pl-parser?rev=299&view=rev

Log:
2009-02-10  Bastien Nocera  <hadess hadess net>

	* plparse/totem-pl-parser-podcast.c
	(totem_pl_parser_parse_itms_doc): Fix possible crasher
	when looking for the feedURL in itms files (Closes: #570997)



Modified:
   branches/gnome-2-24/ChangeLog
   branches/gnome-2-24/plparse/totem-pl-parser-podcast.c

Modified: branches/gnome-2-24/plparse/totem-pl-parser-podcast.c
==============================================================================
--- branches/gnome-2-24/plparse/totem-pl-parser-podcast.c	(original)
+++ branches/gnome-2-24/plparse/totem-pl-parser-podcast.c	Tue Feb 10 14:21:12 2009
@@ -618,7 +618,8 @@
 		/* What we're looking for looks like:
 		 * <key>feedURL</key><string>URL</string> */
 		if (g_ascii_strcasecmp (item->name, "key") == 0
-		    && g_ascii_strcasecmp (item->data, "feedURL") == 0) {
+		    && g_ascii_strcasecmp (item->data, "feedURL") == 0
+		    && item->next != NULL) {
 			item = item->next;
 			if (g_ascii_strcasecmp (item->name, "string") == 0)
 				return item->data;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]