[SCM] PostGIS branch stable-3.4 updated. 3.4.4-56-gceb807b1c
git at osgeo.org
git at osgeo.org
Thu Oct 2 15:04:10 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.4 has been updated
via ceb807b1c4ebd8c00179707738aad8fc09f490d1 (commit)
from 8dc414411446c0d8a711a0c565c29ff1c2028fd6 (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 ceb807b1c4ebd8c00179707738aad8fc09f490d1
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 a800a0d8e..9b6d6af1c 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