[mapserver-commits] r11743 - branches/branch-5-6/mapserver

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


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

Modified:
   branches/branch-5-6/mapserver/HISTORY.TXT
   branches/branch-5-6/mapserver/mapogcfilter.c
Log:
Fix segfault on malformed <PropertyIsLike> filters (#3888)

Modified: branches/branch-5-6/mapserver/HISTORY.TXT
===================================================================
--- branches/branch-5-6/mapserver/HISTORY.TXT	2011-05-21 13:52:15 UTC (rev 11742)
+++ branches/branch-5-6/mapserver/HISTORY.TXT	2011-05-21 13:52:22 UTC (rev 11743)
@@ -14,6 +14,8 @@
 Version 5.6.7 (SVN branch-5-6):
 ---------------------------
 
+- Fix segfault on malformed <PropertyIsLike> filters (#3888)
+
 - Fixed potential crash with AVERAGE resampling and crazy reprojection (#3886)
 
 - Fixed segmentation fault on invalid symbol (#3849)

Modified: branches/branch-5-6/mapserver/mapogcfilter.c
===================================================================
--- branches/branch-5-6/mapserver/mapogcfilter.c	2011-05-21 13:52:15 UTC (rev 11742)
+++ branches/branch-5-6/mapserver/mapogcfilter.c	2011-05-21 13:52:22 UTC (rev 11743)
@@ -2104,7 +2104,7 @@
                     psFilterNode->psLeftNode = FLTCreateFilterEncodingNode();
 
                     psTmpNode = CPLSearchXMLNode(psXMLNode,  "PropertyName");
-                    if (psTmpNode &&  psXMLNode->psChild && 
+                    if (psTmpNode &&  psTmpNode->psChild &&
                         psTmpNode->psChild->pszValue && 
                         strlen(psTmpNode->psChild->pszValue) > 0)
                     
@@ -2126,7 +2126,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