[SCM] PostGIS branch stable-3.6 updated. 3.6.0-12-gbaaca3530
git at osgeo.org
git at osgeo.org
Thu Oct 2 15:03:52 PDT 2025
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 baaca3530e5918e2b8392905ad2282c00ef2d4fb (commit)
from be2a0ffda5b08dca0d94c1498d84b62b83fe76f9 (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 baaca3530e5918e2b8392905ad2282c00ef2d4fb
Author: Maksim Korotkov <m.korotkov at postgrespro.ru>
Date: Thu Oct 2 13:52:26 2025 +0300
Fix NULL-pointer checks for gaztab and rultab in GetStdFromPortalCache
Bad copy paste was potential reason of NULL pointer dereference
Found by Svace static analyzer.
Fixes: c6091a4bb ("Prep to move address_standardizer into extensions folder")
Signed-off-by: Maksim Korotkov <m.korotkov at postgrespro.ru>
diff --git a/extensions/address_standardizer/std_pg_hash.c b/extensions/address_standardizer/std_pg_hash.c
index 17f5e772e..63f490415 100644
--- a/extensions/address_standardizer/std_pg_hash.c
+++ b/extensions/address_standardizer/std_pg_hash.c
@@ -251,8 +251,8 @@ GetStdFromPortalCache(StdPortalCache *STDCache, char *lextab, char *gaztab, cha
for (i=0; i<STD_CACHE_ITEMS; i++) {
StdCacheItem *ci = &STDCache->StdCache[i];
if (ci->lextab && !strcmp(ci->lextab, lextab) &&
- ci->lextab && !strcmp(ci->gaztab, gaztab) &&
- ci->lextab && !strcmp(ci->rultab, rultab))
+ ci->gaztab && !strcmp(ci->gaztab, gaztab) &&
+ ci->rultab && !strcmp(ci->rultab, rultab))
return STDCache->StdCache[i].std;
}
-----------------------------------------------------------------------
Summary of changes:
extensions/address_standardizer/std_pg_hash.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
hooks/post-receive
--
PostGIS
More information about the postgis-tickets
mailing list