[SCM] PostGIS branch stable-3.6 updated. 3.6.3-14-gdaae069ef
git at osgeo.org
git at osgeo.org
Mon Jun 8 10:26:31 PDT 2026
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.6 has been updated
via daae069eff9c6427d3f2801616998774436d3de5 (commit)
via 34cc1957e8b999b8981fc019eff5330efb203c89 (commit)
via 0eb46c8d2c01d5e511d4c7e21531e694be0ce00c (commit)
from bc9704020c519f3b2fccf4376bd2bf4f85236880 (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 daae069eff9c6427d3f2801616998774436d3de5
Author: Paul Ramsey <pramsey at cleverelephant.ca>
Date: Mon Jun 8 10:17:31 2026 -0700
Remove unused PostgreSQL headers
diff --git a/libpgcommon/lwgeom_transform.c b/libpgcommon/lwgeom_transform.c
index a092fc480..18e7ea631 100644
--- a/libpgcommon/lwgeom_transform.c
+++ b/libpgcommon/lwgeom_transform.c
@@ -17,8 +17,6 @@
#include "miscadmin.h"
#include "utils/memutils.h"
#include "executor/spi.h"
-#include "access/hash.h"
-#include "utils/hsearch.h"
/* PostGIS headers */
#include "../postgis_config.h"
diff --git a/postgis/lwgeom_geos_prepared.h b/postgis/lwgeom_geos_prepared.h
index e945d95c5..f38ac0308 100644
--- a/postgis/lwgeom_geos_prepared.h
+++ b/postgis/lwgeom_geos_prepared.h
@@ -27,7 +27,6 @@
#include "postgres.h"
#include "fmgr.h"
#include "miscadmin.h"
-#include "utils/hsearch.h"
#include "utils/memutils.h"
#include "access/hash.h"
commit 34cc1957e8b999b8981fc019eff5330efb203c89
Author: Paul Ramsey <pramsey at cleverelephant.ca>
Date: Thu Jun 4 13:44:05 2026 -0700
News entry for #3916
diff --git a/NEWS b/NEWS
index 06510b3a9..d03d043fa 100644
--- a/NEWS
+++ b/NEWS
@@ -8,6 +8,7 @@ PostGIS 3.6.4
- GH-862, use SFCGAL undeprecated function sfcgal_geometry_tessellate() (Jean Felder)
- Flatgeobuf schema mismatch vulnerability (NeuroWinter)
- #5899, pg_upgrade issue for non-standard geography SRID (Paul Ramsey)
+- #5916, ST_Split hang with very large ordinates (Paul Ramsey)
PostGIS 3.6.3
commit 0eb46c8d2c01d5e511d4c7e21531e694be0ce00c
Author: Paul Ramsey <pramsey at cleverelephant.ca>
Date: Thu Jun 4 13:38:04 2026 -0700
Avoid Inf looping and memory use in ST_Split
When fed with very large coordinates, ST_Split could be
fooled into an Inf loop, this fixes that case,
closes #5916
diff --git a/liblwgeom/lwgeom_geos_split.c b/liblwgeom/lwgeom_geos_split.c
index a69b3d502..15ca6ff5c 100644
--- a/liblwgeom/lwgeom_geos_split.c
+++ b/liblwgeom/lwgeom_geos_split.c
@@ -282,9 +282,12 @@ lwline_split_by_point_to(const LWLINE* lwline_in, const LWPOINT* blade_in,
LWDEBUGF(3, "Projected point:(%.15g %.15g), seg:%d, p1:(%.15g %.15g), p2:(%.15g %.15g)", pt_projected.x, pt_projected.y, seg, p1.x, p1.y, p2.x, p2.y);
- /* When closest point == an endpoint, this is a boundary intersection */
- if ( ( (seg == nsegs-1) && P4D_SAME_STRICT(&pt_projected, &p2) ) ||
- ( (seg == 0) && P4D_SAME_STRICT(&pt_projected, &p1) ) )
+ /* When closest point == an endpoint, this is a boundary intersection.
+ * Compare only X and Y since pt_projected.x/y were forced to pt.x/y above,
+ * and Z/M may be NaN when line coordinates are very large (causing Inf/Inf
+ * in closest_point_on_segment). See #5916. */
+ if ( ( (seg == nsegs-1) && (pt_projected.x == p2.x) && (pt_projected.y == p2.y) ) ||
+ ( (seg == 0) && (pt_projected.x == p1.x) && (pt_projected.y == p1.y) ) )
{
return 1;
}
-----------------------------------------------------------------------
Summary of changes:
NEWS | 1 +
liblwgeom/lwgeom_geos_split.c | 9 ++++++---
libpgcommon/lwgeom_transform.c | 2 --
postgis/lwgeom_geos_prepared.h | 1 -
4 files changed, 7 insertions(+), 6 deletions(-)
hooks/post-receive
--
PostGIS
More information about the postgis-tickets
mailing list