[mapserver-commits] r8013 - trunk/mapserver

svn at osgeo.org svn at osgeo.org
Fri Nov 7 11:14:32 EST 2008


Author: Assefa
Date: 2008-11-07 11:14:32 -0500 (Fri, 07 Nov 2008)
New Revision: 8013

Modified:
   trunk/mapserver/mapogcfilter.c
Log:
 Fix crash when an invalid bbox filter is used (#2805)

Modified: trunk/mapserver/mapogcfilter.c
===================================================================
--- trunk/mapserver/mapogcfilter.c	2008-11-07 16:13:32 UTC (rev 8012)
+++ trunk/mapserver/mapogcfilter.c	2008-11-07 16:14:32 UTC (rev 8013)
@@ -3806,6 +3806,8 @@
           *ppszSRS = strdup(pszSRS);
 
         psCoordinates = CPLGetXMLNode(psBox, "coordinates");
+        if (!psCoordinates)
+          return 0;
         pszTS = (char *)CPLGetXMLValue(psCoordinates, "ts", NULL);
         pszCS = (char *)CPLGetXMLValue(psCoordinates, "cs", NULL);
 



More information about the mapserver-commits mailing list