[mapserver-commits] r8012 - branches/branch-5-2/mapserver

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


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

Modified:
   branches/branch-5-2/mapserver/HISTORY.TXT
   branches/branch-5-2/mapserver/mapogcfilter.c
Log:
 Fix crash when an invalid bbox filter is used (#2805)

Modified: branches/branch-5-2/mapserver/HISTORY.TXT
===================================================================
--- branches/branch-5-2/mapserver/HISTORY.TXT	2008-11-06 18:16:37 UTC (rev 8011)
+++ branches/branch-5-2/mapserver/HISTORY.TXT	2008-11-07 16:13:32 UTC (rev 8012)
@@ -13,6 +13,8 @@
 Current Version (SVN branch-5-2)
 --------------------------------
 
+- Fix crash when an invalid bbox filter is used (#2805)
+
 - raster query fix for tileindex with relative paths (#2722)
 
 - Fix for the access violation caused by msMSSQL2008LayerGetShape (#2795)

Modified: branches/branch-5-2/mapserver/mapogcfilter.c
===================================================================
--- branches/branch-5-2/mapserver/mapogcfilter.c	2008-11-06 18:16:37 UTC (rev 8011)
+++ branches/branch-5-2/mapserver/mapogcfilter.c	2008-11-07 16:13:32 UTC (rev 8012)
@@ -3804,6 +3804,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