[SCM] PostGIS branch master updated. 3.7.0rc1-101-gb4c17bad6
git at osgeo.org
git at osgeo.org
Thu Oct 8 22:30:20 PDT 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 b4c17bad6b529053086d21eaaf294eeb28c07466 (commit)
via faf08233c9be412ab11649484182f9876d65b0d9 (commit)
from fdfed4b3ae6100efdfba36576cc80414552348a7 (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 b4c17bad6b529053086d21eaaf294eeb28c07466
Author: Regina Obe <lr at pcorp.us>
Date: Fri Oct 9 01:29:57 2026 -0400
Fix credits link
add credits for Maxim Korotkov
diff --git a/CREDITS b/CREDITS
index 268a912d7..4f1add896 100644
--- a/CREDITS
+++ b/CREDITS
@@ -1,4 +1,4 @@
For updated credits, see the PostGIS manual.
Offline: see doc/README
-Online: https://postgis.net/docs/manual-dev/postgis_introduction.html#credits
+Online: https://postgis.net/docs/manual-dev/en/postgis_credits.html
diff --git a/doc/credits.xml b/doc/credits.xml
index 86f75f71d..70e15cebc 100644
--- a/doc/credits.xml
+++ b/doc/credits.xml
@@ -390,6 +390,7 @@
<member>Matthias Bay</member>
<member>Maurício Carvalho Mathias de Paulo</member>
<member>Maxim Kochetkov</member>
+ <member>Maxim Korotkov</member>
<member>Maxime Guillaud</member>
<member>Maxime van Noppen</member>
<member>Maxime Schoemans</member>
commit faf08233c9be412ab11649484182f9876d65b0d9
Author: Maksim Korotkov <m.korotkov at postgrespro.ru>
Date: Tue Sep 8 16:10:36 2026 +0300
raster: check array_range allocation and free on the error branch
rtalloc in array_range could return NULL and be dereferenced when
filling the range array; check the result and return the existing
error code (0) instead. Also rtdealloc the already-allocated range in
the (currently unreachable) else branch before nulling the pointer, so
no allocation leaks on the error path.
Signed-off-by: Maksim Korotkov <m.korotkov at postgrespro.ru>
Closes https://github.com/postgis/postgis/pull/1179
for PostGIS 3.7.0
diff --git a/raster/loader/raster2pgsql.c b/raster/loader/raster2pgsql.c
index 9ed52e674..6e9a5953d 100644
--- a/raster/loader/raster2pgsql.c
+++ b/raster/loader/raster2pgsql.c
@@ -142,6 +142,12 @@ array_range(int min, int max, int step, int **range, uint32_t *len) {
*len = (uint32_t) ((abs(max - min) + 1 + (step / 2)) / step);
*range = rtalloc(sizeof(int) * *len);
+ if (!*range)
+ {
+ *len = 0;
+ return 0;
+ }
+
if (min < max) {
for (i = min, j = 0; i <= max; i += step, j++)
(*range)[j] = i;
@@ -156,6 +162,7 @@ array_range(int min, int max, int step, int **range, uint32_t *len) {
}
else {
*len = 0;
+ rtdealloc(*range);
*range = NULL;
return 0;
}
-----------------------------------------------------------------------
Summary of changes:
CREDITS | 2 +-
doc/credits.xml | 1 +
raster/loader/raster2pgsql.c | 7 +++++++
3 files changed, 9 insertions(+), 1 deletion(-)
hooks/post-receive
--
PostGIS
More information about the postgis-tickets
mailing list