[postgis-tickets] [SCM] PostGIS branch master updated. 3.1.0rc1-33-g6f04d19

git at osgeo.org git at osgeo.org
Tue Jan 5 07:10:14 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, master has been updated
       via  6f04d19d5356231de82308047cb8ab6b3c5a6803 (commit)
      from  a3c1c6310db8063b219b3e910ca249352345f048 (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 6f04d19d5356231de82308047cb8ab6b3c5a6803
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.
    References #4825

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:
 postgis/lwgeom_geos_clean.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)


hooks/post-receive
-- 
PostGIS


More information about the postgis-tickets mailing list