[SCM] PostGIS branch stable-3.3 updated. 3.3.7-68-g95797619c
git at osgeo.org
git at osgeo.org
Tue Jan 20 10:44:34 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, stable-3.3 has been updated
via 95797619c8c48b93f2d88c680852ea66d122a8f7 (commit)
via b6c4d156347d9b8204b0dae8ce01796c23207703 (commit)
from 5e9e9bbfcdd2f9857608580aaa6087cc0fa65006 (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 95797619c8c48b93f2d88c680852ea66d122a8f7
Author: Paul Ramsey <pramsey at cleverelephant.ca>
Date: Tue Jan 20 10:44:19 2026 -0800
News item for 680639af5
diff --git a/NEWS b/NEWS
index a2005d6a9..b23c7db50 100644
--- a/NEWS
+++ b/NEWS
@@ -29,6 +29,7 @@ Proj 4.9+ required.
- #6023, Fix robustness issue in ptarray_contains_point (Sandro Santilli)
- #6027, Fix RemoveUnusedPrimitives without topology in search_path (Sandro Santilli)
- #6028, crash indexing malformed empty polygon (Paul Ramsey)
+ - GH-841, small memory leak in address_standardizer (Maxim Korotkov)
PostGIS 3.3.8
commit b6c4d156347d9b8204b0dae8ce01796c23207703
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:
NEWS | 1 +
extensions/address_standardizer/standard.c | 16 +++++++++-------
2 files changed, 10 insertions(+), 7 deletions(-)
hooks/post-receive
--
PostGIS
More information about the postgis-tickets
mailing list