[SCM] PostGIS branch master updated. 3.5.0-378-g1454b6f5b
git at osgeo.org
git at osgeo.org
Fri Jun 6 15:04:57 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, master has been updated
via 1454b6f5b907d3197977546f85e29ef2dabb04da (commit)
from 443901cefb801ce059ac4cd6c43e1027eb5bddb7 (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 1454b6f5b907d3197977546f85e29ef2dabb04da
Author: Paul Ramsey <pramsey at cleverelephant.ca>
Date: Fri Jun 6 15:04:41 2025 -0700
ST_Relate becomes unresponsive, references #5917
diff --git a/postgis/lwgeom_geos_predicates.c b/postgis/lwgeom_geos_predicates.c
index 9074d4ff4..a97d82216 100644
--- a/postgis/lwgeom_geos_predicates.c
+++ b/postgis/lwgeom_geos_predicates.c
@@ -888,7 +888,10 @@ Datum relate_pattern(PG_FUNCTION_ARGS)
SHARED_GSERIALIZED *shared_geom2 = ToastCacheGetGeometry(fcinfo, 1);
const GSERIALIZED *geom1 = shared_gserialized_get(shared_geom1);
const GSERIALIZED *geom2 = shared_gserialized_get(shared_geom2);
- text *patt = PG_GETARG_TEXT_P(2);
+
+ /* Ensure DE9IM pattern is no more than 9 chars */
+ text *patt = DatumGetTextP(DirectFunctionCall2(text_left,
+ PG_GETARG_DATUM(2), Int32GetDatum(9)));
char *pstr = text_to_cstring(patt);
char result;
size_t i;
-----------------------------------------------------------------------
Summary of changes:
postgis/lwgeom_geos_predicates.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
hooks/post-receive
--
PostGIS
More information about the postgis-tickets
mailing list