[postgis-tickets] [SCM] PostGIS branch stable-3.1 updated. 3.1.9-12-ga4249be7f
git at osgeo.org
git at osgeo.org
Mon Sep 18 12:05:52 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 a4249be7ff1d8a289d1ffe1ad361c3faf78f71ff (commit)
from bb104ff9738981f597f3b7775033e8d8f7e6c4af (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 a4249be7ff1d8a289d1ffe1ad361c3faf78f71ff
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 82fa86a2a..5f6588c10 100644
--- a/postgis/lwgeom_export.c
+++ b/postgis/lwgeom_export.c
@@ -280,7 +280,7 @@ Datum geometry_to_jsonb(PG_FUNCTION_ARGS)
LWGEOM *lwgeom = lwgeom_from_gserialized(geom);
lwvarlena_t *geojson = lwgeom_to_geojson(lwgeom, NULL, 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