[postgis-tickets] [SCM] PostGIS branch stable-3.3 updated. 3.3.2-61-gb4511a728

git at osgeo.org git at osgeo.org
Wed May 17 12:05:01 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.3 has been updated
       via  b4511a7280ae13f2583093c5cade162cd15bb052 (commit)
      from  a30303925d6226b96b2d37a6aed233058ba90558 (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 b4511a7280ae13f2583093c5cade162cd15bb052
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.3 branch (3.3.3dev)

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