[postgis-tickets] [SCM] PostGIS branch master updated. 3.3.0rc2-904-gd0b11f0cd

git at osgeo.org git at osgeo.org
Wed May 17 12:01: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, master has been updated
       via  d0b11f0cd43a0a0c9d53bc8514d756f8676b6c27 (commit)
      from  0ffc9e1c1fea259fed9207785517063b8b6e5ecd (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 d0b11f0cd43a0a0c9d53bc8514d756f8676b6c27
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 master branch (3.4.0dev)

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