[SCM] PostGIS branch stable-3.4 updated. 3.4.4-26-g1d4b70653

git at osgeo.org git at osgeo.org
Thu Jun 5 10:51:47 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  1d4b70653be2131c2e04bdc6eb1f8572c6cd932d (commit)
      from  b70602181de95fcc5d0cd2045386ba0ec12fe930 (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 1d4b70653be2131c2e04bdc6eb1f8572c6cd932d
Author: Paul Ramsey <pramsey at cleverelephant.ca>
Date:   Thu Jun 5 10:51:41 2025 -0700

    Avoid free when pointer is null. References #5921

diff --git a/NEWS b/NEWS
index b98fd4d0e..5999faf3c 100644
--- a/NEWS
+++ b/NEWS
@@ -17,6 +17,7 @@ Proj 6.1+ required.
   - #5829, geometry_columns with non-standard constraints (Paul Ramsey)
   - #5818, GT-244 Fix CG_IsSolid function (Loïc Bartoletti)
   - #5885, Fix documentation about grid-based overlay operations (Sandro Santilli)
+  - #5921, Crash freeing uninitialized pointer (Arsenii Mukhin)
 
 
 PostGIS 3.4.4
diff --git a/postgis/gserialized_estimate.c b/postgis/gserialized_estimate.c
index c36564380..d4e5a7eb9 100644
--- a/postgis/gserialized_estimate.c
+++ b/postgis/gserialized_estimate.c
@@ -2267,7 +2267,7 @@ gserialized_sel_internal(PlannerInfo *root, List *args, int varRelid, int mode)
 	nd_stats = pg_nd_stats_from_tuple(vardata.statsTuple, mode);
 	ReleaseVariableStats(vardata);
 	selectivity = estimate_selectivity(&search_box, nd_stats, mode);
-	pfree(nd_stats);
+	if (nd_stats) pfree(nd_stats);
 	return selectivity;
 }
 

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

Summary of changes:
 NEWS                           | 1 +
 postgis/gserialized_estimate.c | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)


hooks/post-receive
-- 
PostGIS


More information about the postgis-tickets mailing list