[SCM] PostGIS branch master updated. 3.6.0rc2-325-g7c7ab9cd5
git at osgeo.org
git at osgeo.org
Mon Feb 2 07:34:31 PST 2026
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 7c7ab9cd551a8edd438ce63b21dffd48351e4c02 (commit)
via 687f2c1b08e4e045e5991373270baf439cc90886 (commit)
from 94ef97c1abee29b69e83e81eb535e67ffd2a4c2c (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 7c7ab9cd551a8edd438ce63b21dffd48351e4c02
Merge: 94ef97c1a 687f2c1b0
Author: Paul Ramsey <pramsey at cleverelephant.ca>
Date: Mon Feb 2 07:34:23 2026 -0800
Merge branch 'ProjectMutilation-flatgeof-fix-typo'
commit 687f2c1b08e4e045e5991373270baf439cc90886
Author: Maksim Korotkov <m.korotkov at postgrespro.ru>
Date: Mon Feb 2 16:08:43 2026 +0300
Fix memory allocation size for arrays in flatgeobuf_decode_row
The original code incorrectly allocated memory for pointers
instead of the actual types, potentially causing buffer
overflows or memory corruption since it was allocating
insufficient memory (size of pointer instead of size of Datum/bool).
Found by PostgesPro.
Fixes: 3ae2c5844 ("FlatGeobuf format input/output")
Signed-off-by: Maksim Korotkov <m.korotkov at postgrespro.ru>
diff --git a/postgis/flatgeobuf.c b/postgis/flatgeobuf.c
index e6c5f5c87..eb29f8920 100644
--- a/postgis/flatgeobuf.c
+++ b/postgis/flatgeobuf.c
@@ -466,8 +466,8 @@ void flatgeobuf_decode_row(struct flatgeobuf_decode_ctx *ctx)
HeapTuple heapTuple;
uint32_t natts = ctx->tupdesc->natts;
- Datum *values = palloc0(natts * sizeof(Datum *));
- bool *isnull = palloc0(natts * sizeof(bool *));
+ Datum *values = palloc0(natts * sizeof(Datum));
+ bool *isnull = palloc0(natts * sizeof(bool));
values[0] = Int32GetDatum(ctx->fid);
-----------------------------------------------------------------------
Summary of changes:
postgis/flatgeobuf.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
hooks/post-receive
--
PostGIS
More information about the postgis-tickets
mailing list