[SCM] PostGIS branch stable-3.6 updated. 3.6.4-7-g84829064e
git at osgeo.org
git at osgeo.org
Mon Jun 22 14:35:04 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, stable-3.6 has been updated
via 84829064ea5a5824334a0c038eec20cc81f58ab1 (commit)
from 86bf6bf1965bc03b53a391da5a17f1ff134f1fd2 (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 84829064ea5a5824334a0c038eec20cc81f58ab1
Author: Paul Ramsey <pramsey at cleverelephant.ca>
Date: Mon Jun 22 14:34:08 2026 -0700
Avoid out-of-bounds write, uninitialized memory.
diff --git a/extensions/address_standardizer/gamma.c b/extensions/address_standardizer/gamma.c
index 0824c6535..d802e86fb 100644
--- a/extensions/address_standardizer/gamma.c
+++ b/extensions/address_standardizer/gamma.c
@@ -122,7 +122,7 @@ RULES *rules_init( ERR_PARAM *err_p ) {
rules->rule_number = 0;
rules->last_node = EPSILON;
- PAGC_ALLOC_STRUC(r_p,RULE_PARAM,err_p,NULL) ;
+ PAGC_CALLOC_STRUC(r_p,RULE_PARAM,1,err_p,NULL) ;
rules->r_p = r_p;
/* -- initialize the statistics record -- */
diff --git a/extensions/address_standardizer/std_pg_hash.c b/extensions/address_standardizer/std_pg_hash.c
index 63f490415..a83be783a 100644
--- a/extensions/address_standardizer/std_pg_hash.c
+++ b/extensions/address_standardizer/std_pg_hash.c
@@ -534,12 +534,12 @@ static int parse_rule(char *buf, int *rule)
while (1) {
+ if (nr >= MAX_RULE_LENGTH) return -1;
*r = strtol( p, &q, 10 );
if (p == q) break;
p = q;
nr++;
r++;
- if (nr > MAX_RULE_LENGTH) return -1;
}
return nr;
-----------------------------------------------------------------------
Summary of changes:
extensions/address_standardizer/gamma.c | 2 +-
extensions/address_standardizer/std_pg_hash.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
hooks/post-receive
--
PostGIS
More information about the postgis-tickets
mailing list