[SCM] PostGIS branch stable-3.5 updated. 3.5.3-7-gc429b883f
git at osgeo.org
git at osgeo.org
Thu Jun 5 10:51:01 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.5 has been updated
via c429b883f8dd380f858dcd0a521c4f89181b9f0e (commit)
from 0dfd3180662efcc60a063a931476bf797a5f205f (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 c429b883f8dd380f858dcd0a521c4f89181b9f0e
Author: Paul Ramsey <pramsey at cleverelephant.ca>
Date: Thu Jun 5 10:50:55 2025 -0700
Avoid free when pointer is null. References #5921
diff --git a/NEWS b/NEWS
index 4544d9ac0..c293e16a7 100644
--- a/NEWS
+++ b/NEWS
@@ -8,6 +8,7 @@ PostgreSQL 12-18 required. GEOS 3.8+ required. Proj 6.1+ required.
- #5908, [topology] Fix crash in GetFaceContainingPoint (Sandro Santilli)
- #5907, [topology] Fix crash in TopoGeo_AddPolygon with EMPTY input (Sandro Santilli)
- #5922, [topology] Fix crash in TopoGeo_AddLinestring with EMPTY input (Sandro Santilli)
+- #5921, Crash freeing uninitialized pointer (Arsenii Mukhin)
PostGIS 3.5.3
diff --git a/postgis/gserialized_estimate.c b/postgis/gserialized_estimate.c
index 2ce7a63b0..453989585 100644
--- a/postgis/gserialized_estimate.c
+++ b/postgis/gserialized_estimate.c
@@ -2271,7 +2271,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