[SCM] PostGIS branch stable-3.4 updated. 3.4.4-33-g7e6b479dd

git at osgeo.org git at osgeo.org
Fri Jun 6 15:10:34 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.4 has been updated
       via  7e6b479dd6fd3057b9f4cdcc4219651bd0932ec2 (commit)
       via  c04b72a074046675857f40cbf41dc223fadb0a51 (commit)
      from  923ad03add072d8a00341eae3bb3a1f45a4e47f4 (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 7e6b479dd6fd3057b9f4cdcc4219651bd0932ec2
Author: Paul Ramsey <pramsey at cleverelephant.ca>
Date:   Fri Jun 6 15:10:26 2025 -0700

    News entry for #5917

diff --git a/NEWS b/NEWS
index 088e29d87..07c748820 100644
--- a/NEWS
+++ b/NEWS
@@ -21,6 +21,7 @@ Proj 6.1+ 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.4.4

commit c04b72a074046675857f40cbf41dc223fadb0a51
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 4f619f4c8..77d8f5f0e 100644
--- a/postgis/lwgeom_geos.c
+++ b/postgis/lwgeom_geos.c
@@ -2612,6 +2612,7 @@ Datum relate_pattern(PG_FUNCTION_ARGS)
 	GSERIALIZED *geom1;
 	GSERIALIZED *geom2;
 	char *patt;
+	text *ptxt;
 	char result;
 	GEOSGeometry *g1, *g2;
 	size_t i;
@@ -2634,7 +2635,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