[SCM] PostGIS branch stable-3.2 updated. 3.2.7-44-g15fa2f12b
git at osgeo.org
git at osgeo.org
Fri Jun 6 15:14:17 PDT 2025
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.2 has been updated
via 15fa2f12ba9150a93d4d4c3d4075df0504a96fe5 (commit)
via 62bc084827881e2a5d8a446c93f031422d66792f (commit)
from 4b5891696d5412af0c451c388a22edf8acec52e2 (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 15fa2f12ba9150a93d4d4c3d4075df0504a96fe5
Author: Paul Ramsey <pramsey at cleverelephant.ca>
Date: Fri Jun 6 15:14:11 2025 -0700
News entry for #5917
diff --git a/NEWS b/NEWS
index d3dcab050..0e824d550 100644
--- a/NEWS
+++ b/NEWS
@@ -16,6 +16,7 @@ Proj 4.9+ required.
- #5912, Crash on GML with xlink and no prefix (Paul Ramsey)
- #5905, Crash on deeply nested geometries (Paul Ramsey)
- #5909, ST_ValueCount crashes on empty table (Paul Ramsey)
+ - #5917, ST_Relate becomes unresponsive (Paul Ramsey)
PostGIS 3.2.8
commit 62bc084827881e2a5d8a446c93f031422d66792f
Author: Paul Ramsey <pramsey at cleverelephant.ca>
Date: Fri Jun 6 15:10:00 2025 -0700
ST_Relate becomes unresponsive, references #5917
diff --git a/postgis/lwgeom_geos.c b/postgis/lwgeom_geos.c
index 0c117973d..27b7de311 100644
--- a/postgis/lwgeom_geos.c
+++ b/postgis/lwgeom_geos.c
@@ -2515,6 +2515,7 @@ Datum relate_pattern(PG_FUNCTION_ARGS)
GSERIALIZED *geom1;
GSERIALIZED *geom2;
char *patt;
+ text *ptxt;
char result;
GEOSGeometry *g1, *g2;
size_t i;
@@ -2537,8 +2538,10 @@ Datum relate_pattern(PG_FUNCTION_ARGS)
HANDLE_GEOS_ERROR("Second argument geometry could not be converted to GEOS");
}
- patt = DatumGetCString(DirectFunctionCall1(textout,
- PointerGetDatum(PG_GETARG_DATUM(2))));
+ /* Ensure DE9IM pattern is no more than 9 chars */
+ ptxt = DatumGetTextP(DirectFunctionCall2(text_left,
+ PG_GETARG_DATUM(2), Int32GetDatum(9)));
+ patt = text_to_cstring(ptxt);
/*
** Need to make sure 't' and 'f' are upper-case before handing to GEOS
-----------------------------------------------------------------------
Summary of changes:
NEWS | 1 +
postgis/lwgeom_geos.c | 7 +++++--
2 files changed, 6 insertions(+), 2 deletions(-)
hooks/post-receive
--
PostGIS
More information about the postgis-tickets
mailing list