[mapserver-commits] r13264 - trunk/mapserver

svn at osgeo.org svn at osgeo.org
Thu Mar 15 12:38:22 EDT 2012


Author: tbonfort
Date: 2012-03-15 09:38:21 -0700 (Thu, 15 Mar 2012)
New Revision: 13264

Modified:
   trunk/mapserver/mapdraw.c
Log:
bail out early on invalid shapes


Modified: trunk/mapserver/mapdraw.c
===================================================================
--- trunk/mapserver/mapdraw.c	2012-03-14 17:01:33 UTC (rev 13263)
+++ trunk/mapserver/mapdraw.c	2012-03-15 16:38:21 UTC (rev 13264)
@@ -1933,7 +1933,9 @@
   int bNeedUnclippedShape = MS_FALSE;
   int bNeedUnclippedAnnoShape = MS_FALSE;
   int bShapeNeedsClipping = MS_TRUE;
-  
+
+  if(shape->numlines == 0 || shape->type == MS_SHAPE_NULL) return MS_SUCCESS;
+
   msDrawStartShape(map, layer, image, shape);
   c = shape->classindex;
 



More information about the mapserver-commits mailing list