[SCM] PostGIS branch master updated. 3.6.0rc2-77-gdb3ade430

git at osgeo.org git at osgeo.org
Thu Oct 2 15:02:43 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, master has been updated
       via  db3ade4307c67561e7a59eb9c9badd1117dd1010 (commit)
       via  c5b7ca28fddd59b3af2f3fff5ff1f5624531f970 (commit)
      from  dc860997c4d074ad8ca11e5f1c53aec7254d8ff0 (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 db3ade4307c67561e7a59eb9c9badd1117dd1010
Merge: dc860997c c5b7ca28f
Author: Paul Ramsey <pramsey at cleverelephant.ca>
Date:   Thu Oct 2 15:02:37 2025 -0700

    Merge branch 'ProjectMutilation-fix-typo'


commit c5b7ca28fddd59b3af2f3fff5ff1f5624531f970
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