[geos-commits] r2627 - branches/3.1/source/geom
svn_geos at osgeo.org
svn_geos at osgeo.org
Mon Sep 21 15:47:45 EDT 2009
Author: pramsey
Date: 2009-09-21 15:47:45 -0400 (Mon, 21 Sep 2009)
New Revision: 2627
Modified:
branches/3.1/source/geom/Polygon.cpp
Log:
Polygon with empty ring causes a crash in WKBReader (from Tamas Szekeres) (#290)
Modified: branches/3.1/source/geom/Polygon.cpp
===================================================================
--- branches/3.1/source/geom/Polygon.cpp 2009-09-21 19:47:31 UTC (rev 2626)
+++ branches/3.1/source/geom/Polygon.cpp 2009-09-21 19:47:45 UTC (rev 2627)
@@ -73,7 +73,7 @@
}
else
{
- if (newShell->isEmpty() && hasNonEmptyElements(newHoles)) {
+ if (newHoles != NULL && newShell->isEmpty() && hasNonEmptyElements(newHoles)) {
delete newShell;
delete newHoles;
throw util::IllegalArgumentException("shell is empty but holes are not");
More information about the geos-commits
mailing list