[SCM] PostGIS branch stable-3.3 updated. 3.3.7-42-g3bb3801c2
git at osgeo.org
git at osgeo.org
Fri Jun 6 15:11:19 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.3 has been updated
via 3bb3801c2244baea305359e3946038b9e78f1c2d (commit)
via 73134d8cebc3d70d720071485fede59de778825a (commit)
from ed55e6b63f9bca72bb4c688ddd832357389225f6 (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 3bb3801c2244baea305359e3946038b9e78f1c2d
Author: Paul Ramsey <pramsey at cleverelephant.ca>
Date: Fri Jun 6 15:11:13 2025 -0700
News entry for #5917
diff --git a/NEWS b/NEWS
index c13434ece..4f41363a4 100644
--- a/NEWS
+++ b/NEWS
@@ -17,6 +17,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.3.8
commit 73134d8cebc3d70d720071485fede59de778825a
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 de53150ca..cb3e5b4e2 100644
--- a/postgis/lwgeom_geos.c
+++ b/postgis/lwgeom_geos.c
@@ -2488,6 +2488,7 @@ Datum relate_pattern(PG_FUNCTION_ARGS)
GSERIALIZED *geom1;
GSERIALIZED *geom2;
char *patt;
+ text *ptxt;
char result;
GEOSGeometry *g1, *g2;
size_t i;
@@ -2510,7 +2511,10 @@ Datum relate_pattern(PG_FUNCTION_ARGS)
HANDLE_GEOS_ERROR("Second argument geometry could not be converted to GEOS");
}
- patt = DatumGetCString(DirectFunctionCall1(textout, 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 | 6 +++++-
2 files changed, 6 insertions(+), 1 deletion(-)
hooks/post-receive
--
PostGIS
More information about the postgis-tickets
mailing list