[SCM] PostGIS branch master updated. 3.4.0rc1-877-g60795830a

git at osgeo.org git at osgeo.org
Wed Jan 10 11:44:42 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, master has been updated
       via  60795830a15c9c0907f58ed20a21422fbc10eae2 (commit)
      from  6f63337551d63fcca94e44fa5c6a26adea48242a (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 60795830a15c9c0907f58ed20a21422fbc10eae2
Author: Paul Ramsey <pramsey at cleverelephant.ca>
Date:   Wed Jan 10 11:44:38 2024 -0800

    Crash on collections with empty members, references #5646

diff --git a/postgis/lwgeom_rtree.c b/postgis/lwgeom_rtree.c
index efa2b3523..59cc77395 100644
--- a/postgis/lwgeom_rtree.c
+++ b/postgis/lwgeom_rtree.c
@@ -602,6 +602,9 @@ point_in_multipolygon_rtree(RTREE_NODE **root, int polyCount, int *ringCounts, L
 	/* 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:
 postgis/lwgeom_rtree.c | 3 +++
 1 file changed, 3 insertions(+)


hooks/post-receive
-- 
PostGIS


More information about the postgis-tickets mailing list