[mapserver-commits] r11742 - trunk/mapserver

svn at osgeo.org svn at osgeo.org
Sat May 21 09:52:15 EDT 2011


Author: rouault
Date: 2011-05-21 06:52:15 -0700 (Sat, 21 May 2011)
New Revision: 11742

Modified:
   trunk/mapserver/HISTORY.TXT
   trunk/mapserver/mapogcfilter.c
Log:
Fix segfault on malformed <PropertyIsLike> filters (#3888)

Modified: trunk/mapserver/HISTORY.TXT
===================================================================
--- trunk/mapserver/HISTORY.TXT	2011-05-21 12:21:16 UTC (rev 11741)
+++ trunk/mapserver/HISTORY.TXT	2011-05-21 13:52:15 UTC (rev 11742)
@@ -15,6 +15,8 @@
 Current Version (SVN trunk, 6.1-dev, future 6.2): 
 ------------------------------------------------- 
 
+- Fix segfault on malformed <PropertyIsLike> filters (#3888)
+
 - Fixed the query handling problem with the Oracle spatial driver (#3878)
 
 - Fixed potential crash with AVERAGE resampling and crazy reprojection (#3886)

Modified: trunk/mapserver/mapogcfilter.c
===================================================================
--- trunk/mapserver/mapogcfilter.c	2011-05-21 12:21:16 UTC (rev 11741)
+++ trunk/mapserver/mapogcfilter.c	2011-05-21 13:52:15 UTC (rev 11742)
@@ -1409,7 +1409,7 @@
                     psFilterNode->psLeftNode = FLTCreateFilterEncodingNode();
 
                     psTmpNode = CPLSearchXMLNode(psXMLNode,  "PropertyName");
-                    if (psTmpNode &&  psXMLNode->psChild && 
+                    if (psTmpNode &&  psTmpNode->psChild &&
                         psTmpNode->psChild->pszValue && 
                         strlen(psTmpNode->psChild->pszValue) > 0)
                     
@@ -1431,7 +1431,7 @@
 
                     
                     psTmpNode = CPLSearchXMLNode(psXMLNode,  "Literal");
-                    if (psTmpNode &&  psXMLNode->psChild && 
+                    if (psTmpNode &&  psTmpNode->psChild &&
                         psTmpNode->psChild->pszValue && 
                         strlen(psTmpNode->psChild->pszValue) > 0)
                     {



More information about the mapserver-commits mailing list