[postgis-tickets] [SCM] PostGIS branch master updated. 3.4.0rc1-576-gd596b5a06
git at osgeo.org
git at osgeo.org
Mon Sep 18 12:03:47 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 d596b5a06616ae913e1de0ac355f2500b4cc69bf (commit)
from bfaab7641d9591bcc21e436d012fd2e79f9d25d7 (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 d596b5a06616ae913e1de0ac355f2500b4cc69bf
Author: Paul Ramsey <pramsey at cleverelephant.ca>
Date: Mon Sep 18 12:03:42 2023 -0700
Avoid reading past the end of varlena_t data buffer
diff --git a/postgis/lwgeom_export.c b/postgis/lwgeom_export.c
index 4d09512fa..8bc9c1916 100644
--- a/postgis/lwgeom_export.c
+++ b/postgis/lwgeom_export.c
@@ -294,7 +294,7 @@ Datum geometry_to_jsonb(PG_FUNCTION_ARGS)
}
geojson = lwgeom_to_geojson(lwgeom, srs, 15, 0);
lwgeom_free(lwgeom);
- PG_RETURN_DATUM(DirectFunctionCall1(jsonb_in, PointerGetDatum(pstrdup(geojson->data))));
+ PG_RETURN_DATUM(DirectFunctionCall1(jsonb_in, PointerGetDatum(text_to_cstring(geojson))));
}
-----------------------------------------------------------------------
Summary of changes:
postgis/lwgeom_export.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
hooks/post-receive
--
PostGIS
More information about the postgis-tickets
mailing list