libsoup r1180 - in trunk: . libsoup



Author: danw
Date: Fri Oct 10 17:05:58 2008
New Revision: 1180
URL: http://svn.gnome.org/viewvc/libsoup?rev=1180&view=rev

Log:
2008-10-09  Andrew W. Nosenko  <andrew w nosenko gmail com>

	* libsoup/soup-uri.c (soup_uri_to_string): Verify whether uri is
	non-NULL and avoid crash on NULL pointer dereference therefore.


Modified:
   trunk/ChangeLog
   trunk/libsoup/soup-uri.c

Modified: trunk/libsoup/soup-uri.c
==============================================================================
--- trunk/libsoup/soup-uri.c	(original)
+++ trunk/libsoup/soup-uri.c	Fri Oct 10 17:05:58 2008
@@ -415,6 +415,8 @@
 	GString *str;
 	char *return_result;
 
+	g_return_val_if_fail (uri != NULL, NULL);
+
 	/* IF YOU CHANGE ANYTHING IN THIS FUNCTION, RUN
 	 * tests/uri-parsing AFTERWARD.
 	 */



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