[SCM] PostGIS branch master updated. 3.6.0rc2-289-g0a5d1263b

git at osgeo.org git at osgeo.org
Tue Jan 20 10:22:01 PST 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, master has been updated
       via  0a5d1263b5b75114b15e8915e4ecce2827c08476 (commit)
      from  c460d6928c131cc0ae973200afacfa8c47cc4953 (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 0a5d1263b5b75114b15e8915e4ecce2827c08476
Author: Maksim Korotkov <m.korotkov at postgrespro.ru>
Date:   Tue Jan 20 17:51:57 2026 +0300

    Avoid potential NULL dereference in std_free()
    After check against NULL the pointer std -> pagc_p was used unsafely.
    
    Found by PostgresPro with 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/standard.c b/extensions/address_standardizer/standard.c
index 4fe63e3ed..9fed23411 100644
--- a/extensions/address_standardizer/standard.c
+++ b/extensions/address_standardizer/standard.c
@@ -379,13 +379,15 @@ void std_free(STANDARDIZER *std)
 {
     if ( std == NULL ) return;
     DBG("Calling close_stand_process");
-    if ( std -> pagc_p != NULL ) close_stand_process( std -> pagc_p ) ;
-    if ( std -> pagc_p -> process_errors != NULL ) {
-        DBG("Calling close_errors");
-        close_errors( std -> pagc_p -> process_errors );
-        DBG("Calling FREE_AND_NULL");
-        FREE_AND_NULL( std -> pagc_p ) ;
-    }
+    if ( std -> pagc_p != NULL ) {
+		close_stand_process( std -> pagc_p ) ;
+		if ( std -> pagc_p -> process_errors != NULL ) {
+			DBG("Calling close_errors");
+			close_errors( std -> pagc_p -> process_errors );
+		}
+		DBG("Calling FREE_AND_NULL");
+		FREE_AND_NULL( std -> pagc_p );
+	}
     DBG("Calling close_stand_context");
     close_stand_context( std -> misc_stand );
     DBG("Calling free");

-----------------------------------------------------------------------

Summary of changes:
 extensions/address_standardizer/standard.c | 16 +++++++++-------
 1 file changed, 9 insertions(+), 7 deletions(-)


hooks/post-receive
-- 
PostGIS


More information about the postgis-tickets mailing list