totem-pl-parser r300 - in trunk: . plparse



Author: hadess
Date: Tue Feb 10 14:21:48 2009
New Revision: 300
URL: http://svn.gnome.org/viewvc/totem-pl-parser?rev=300&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:
   trunk/ChangeLog
   trunk/plparse/totem-pl-parser-podcast.c

Modified: trunk/plparse/totem-pl-parser-podcast.c
==============================================================================
--- trunk/plparse/totem-pl-parser-podcast.c	(original)
+++ trunk/plparse/totem-pl-parser-podcast.c	Tue Feb 10 14:21:48 2009
@@ -638,7 +638,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]