[postgis-tickets] [SCM] PostGIS branch stable-3.1 updated. 3.1.8-19-ge0d077c71

git at osgeo.org git at osgeo.org
Wed May 17 12:06:15 PDT 2023


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  e0d077c71a185b97804b72489c55435baa9bdf60 (commit)
      from  44507e022295df4ff15ab1e3a4bfbb71cfd6c739 (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 e0d077c71a185b97804b72489c55435baa9bdf60
Author: Sandro Santilli <strk at kbt.io>
Date:   Wed May 17 21:00:52 2023 +0200

    Fix write past end of block in GML output
    
    References #5384 in 3.1 branch (3.1.9dev)

diff --git a/postgis/geography_inout.c b/postgis/geography_inout.c
index ea3c81379..a2ff6a280 100644
--- a/postgis/geography_inout.c
+++ b/postgis/geography_inout.c
@@ -271,7 +271,7 @@ Datum geography_as_gml(PG_FUNCTION_ARGS)
 
 	if (VARSIZE_ANY_EXHDR(id_text) > 0)
 	{
-		id_buf = palloc(VARSIZE_ANY_EXHDR(id_text)+1);
+		id_buf = palloc(VARSIZE_ANY_EXHDR(id_text)+2);
 		memcpy(id_buf, VARDATA(id_text), VARSIZE_ANY_EXHDR(id_text));
 		id_buf[VARSIZE_ANY_EXHDR(id_text)+1] = '\0';
 		id = id_buf;

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

Summary of changes:
 postgis/geography_inout.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)


hooks/post-receive
-- 
PostGIS


More information about the postgis-tickets mailing list