[SCM] PostGIS branch stable-3.0 updated. 3.0.10-12-g0996738e2
git at osgeo.org
git at osgeo.org
Wed Jan 10 11:52:29 PST 2024
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "PostGIS".
The branch, stable-3.0 has been updated
via 0996738e29377a379b228622de175670167b4170 (commit)
from 190d92ad5acf13644a7c781623b6534a3f9a7e14 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 0996738e29377a379b228622de175670167b4170
Author: Paul Ramsey <pramsey at cleverelephant.ca>
Date: Wed Jan 10 11:52:23 2024 -0800
Crash on collections with empty members, references #5646
diff --git a/NEWS b/NEWS
index 3ee229606..51042034e 100644
--- a/NEWS
+++ b/NEWS
@@ -8,6 +8,7 @@ xxxx/xx/xx
- #5627, Handling of EMPTY components in PiP check (Paul Ramsey)
- #5604, Handle distance between collections with empty elements (Paul Ramsey)
- #5635, Handle NaN points in ST_Split (Regina Obe)
+ - #5646, Crash on collections with empty members (Paul Ramsey)
PostGIS 3.0.10
diff --git a/postgis/lwgeom_functions_analytic.c b/postgis/lwgeom_functions_analytic.c
index 6fa02c296..4e94f636a 100644
--- a/postgis/lwgeom_functions_analytic.c
+++ b/postgis/lwgeom_functions_analytic.c
@@ -947,6 +947,9 @@ int point_in_multipolygon_rtree(RTREE_NODE **root, int polyCount, int *ringCount
/* is the point inside any of the sub-polygons? */
for ( p = 0; p < polyCount; p++ )
{
+ /* Skip empty polygons */
+ if( ringCounts[p] == 0 ) continue;
+
in_ring = point_in_ring_rtree(root[i], &pt);
POSTGIS_DEBUGF(4, "point_in_multipolygon_rtree: exterior ring (%d), point_in_ring returned %d", p, in_ring);
if ( in_ring == -1 ) /* outside the exterior ring */
-----------------------------------------------------------------------
Summary of changes:
NEWS | 1 +
postgis/lwgeom_functions_analytic.c | 3 +++
2 files changed, 4 insertions(+)
hooks/post-receive
--
PostGIS
More information about the postgis-tickets
mailing list