[postgis-tickets] [SCM] PostGIS branch master updated. 3.1.0alpha2-158-gb74f0dc

git at osgeo.org git at osgeo.org
Sun Nov 15 16:47:11 PST 2020


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  b74f0dc07324d778c363da09534b65f11e77bcb5 (commit)
      from  dfeaaac7081005ff5086776fcc54aacfd07aca02 (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 b74f0dc07324d778c363da09534b65f11e77bcb5
Author: Paul Ramsey <pramsey at cleverelephant.ca>
Date:   Sun Nov 15 16:47:05 2020 -0800

    Fix crasher incorrect pg_free_if_copy()

diff --git a/postgis/lwgeom_generate_grid.c b/postgis/lwgeom_generate_grid.c
index 607f01b..4cd2409 100755
--- a/postgis/lwgeom_generate_grid.c
+++ b/postgis/lwgeom_generate_grid.c
@@ -379,7 +379,7 @@ Datum ST_Hexagon(PG_FUNCTION_ARGS)
 		            lwgeom_get_srid(lworigin));
 
 	ghex = geometry_serialize(lwhex);
-	PG_FREE_IF_COPY(gorigin, 1);
+	PG_FREE_IF_COPY(gorigin, 3);
 	PG_RETURN_POINTER(ghex);
 }
 
@@ -417,6 +417,6 @@ Datum ST_Square(PG_FUNCTION_ARGS)
 		           lwgeom_get_srid(lworigin));
 
 	gsqr = geometry_serialize(lwsqr);
-	PG_FREE_IF_COPY(gorigin, 1);
+	PG_FREE_IF_COPY(gorigin, 3);
 	PG_RETURN_POINTER(gsqr);
 }

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

Summary of changes:
 postgis/lwgeom_generate_grid.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)


hooks/post-receive
-- 
PostGIS


More information about the postgis-tickets mailing list