libxml2 r3673 - trunk



Author: veillard
Date: Fri Jan 11 06:53:15 2008
New Revision: 3673
URL: http://svn.gnome.org/viewvc/libxml2?rev=3673&view=rev

Log:
* xmllint.c: apply fix from Stefan Kost to avoid a crash
  in xmllint, fixes 504284
Daniel


Modified:
   trunk/ChangeLog
   trunk/xmllint.c

Modified: trunk/xmllint.c
==============================================================================
--- trunk/xmllint.c	(original)
+++ trunk/xmllint.c	Fri Jan 11 06:53:15 2008
@@ -257,7 +257,7 @@
     const char *lastsegment = URL;
     const char *iter = URL;
 
-    if (nbpaths > 0) {
+    if ((nbpaths > 0) && (iter != NULL)) {
 	while (*iter != 0) {
 	    if (*iter == '/')
 		lastsegment = iter + 1;



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