[SCM] PostGIS branch stable-3.5 updated. 3.5.3-63-g1c88b96de

git at osgeo.org git at osgeo.org
Thu Oct 2 15:04:04 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.5 has been updated
       via  1c88b96de3d387aea45d47f53f0ac8f0be6ee813 (commit)
      from  ae2d86d16b3ebf9f69baf1429fe4be6ab1bcf1cf (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 1c88b96de3d387aea45d47f53f0ac8f0be6ee813
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