[postgis-tickets] [SCM] PostGIS branch stable-3.0 updated. 3.0.8-14-g5faf8b69b

git at osgeo.org git at osgeo.org
Wed May 17 12:06:46 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.0 has been updated
       via  5faf8b69b74cc007d7cf721631284b75b0134aa6 (commit)
      from  72385411f024b32c4975f88886c42e3ce3ca032c (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 5faf8b69b74cc007d7cf721631284b75b0134aa6
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
    
    Closes #5384 in 3.0 branch (3.0.9dev)

diff --git a/postgis/geography_inout.c b/postgis/geography_inout.c
index 63f43bd35..89ad0ebe3 100644
--- a/postgis/geography_inout.c
+++ b/postgis/geography_inout.c
@@ -285,7 +285,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