[SCM] PostGIS branch stable-3.3 updated. 3.3.10-12-g5964d6f1a
git at osgeo.org
git at osgeo.org
Mon Jun 22 14:34:53 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.3 has been updated
via 5964d6f1ae4d2ea69f2a8a76f260674bab2e93b4 (commit)
from 856f0504287b904c9dca0fa8307db152704297ae (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 5964d6f1ae4d2ea69f2a8a76f260674bab2e93b4
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 dcb16f7d0..96b7d72be 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 9b6d6af1c..100d35838 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