[postgis-tickets] [SCM] PostGIS branch stable-3.1 updated. 3.1.0-8-g22e3168

git at osgeo.org git at osgeo.org
Tue Jan 5 08:46:01 PST 2021


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.1 has been updated
       via  22e3168fd3bbce6fbcbc6868b204e6cfa176ba91 (commit)
      from  0915ed0c17a8d5541d2da84e4f4a4b280bc2dadd (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 22e3168fd3bbce6fbcbc6868b204e6cfa176ba91
Author: Sandro Santilli <strk at kbt.io>
Date:   Tue Jan 5 16:09:26 2021 +0100

    Copy input of ST_MakeValid before passing to lwgeom_make_valid
    
    The lwgeom_make_valid function can change the input geometry.
    Closes #4825 in 3.1 branch (3.1.1dev)

diff --git a/NEWS b/NEWS
index 5b39530..e4440da 100644
--- a/NEWS
+++ b/NEWS
@@ -5,7 +5,9 @@ PostGIS 3.1.1
  * Bug Fixes
 
   - #4814, Crash passing collection with only empty components to ST_MakeValid
-  - #4818, Make the VSICURL synthetic driver work as documented 
+           (Sandro Santilli)
+  - #4818, Make the VSICURL synthetic driver work as documented
+  - #4825, Unstable results from ST_MakeValid (Sandro Santilli)
 
 
 PostGIS 3.1.0
diff --git a/postgis/lwgeom_geos_clean.c b/postgis/lwgeom_geos_clean.c
index 36228e6..6176e0a 100644
--- a/postgis/lwgeom_geos_clean.c
+++ b/postgis/lwgeom_geos_clean.c
@@ -45,7 +45,7 @@ Datum ST_MakeValid(PG_FUNCTION_ARGS)
 	GSERIALIZED *in, *out;
 	LWGEOM *lwgeom_in, *lwgeom_out;
 
-	in = PG_GETARG_GSERIALIZED_P(0);
+	in = PG_GETARG_GSERIALIZED_P_COPY(0);
 	lwgeom_in = lwgeom_from_gserialized(in);
 
 	POSTGIS_DEBUG(1, "ST_MakeValid enter");

-----------------------------------------------------------------------

Summary of changes:
 NEWS                        | 4 +++-
 postgis/lwgeom_geos_clean.c | 2 +-
 2 files changed, 4 insertions(+), 2 deletions(-)


hooks/post-receive
-- 
PostGIS


More information about the postgis-tickets mailing list