[SCM] PostGIS branch stable-3.3 updated. 3.3.7-35-g5bc962a13

git at osgeo.org git at osgeo.org
Thu Jun 5 10:52:50 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.3 has been updated
       via  5bc962a13791784151a99242e12060fbe96773a0 (commit)
      from  4cabc42205bd5005c809fb3bc990bd4be704b424 (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 5bc962a13791784151a99242e12060fbe96773a0
Author: Paul Ramsey <pramsey at cleverelephant.ca>
Date:   Thu Jun 5 10:52:44 2025 -0700

    Avoid free when pointer is null. References #5921

diff --git a/NEWS b/NEWS
index 8b61eb7bc..5a393e02f 100644
--- a/NEWS
+++ b/NEWS
@@ -13,6 +13,7 @@ Proj 4.9+ 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.3.8
diff --git a/postgis/gserialized_estimate.c b/postgis/gserialized_estimate.c
index 6988f53e9..30193325b 100644
--- a/postgis/gserialized_estimate.c
+++ b/postgis/gserialized_estimate.c
@@ -2268,7 +2268,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