[SCM] PostGIS branch stable-3.2 updated. 3.2.7-37-gc2b719d20
git at osgeo.org
git at osgeo.org
Thu Jun 5 11:07:58 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.2 has been updated
via c2b719d209ce80f0fc0d0ac9c9e1e80017b953ea (commit)
from 51584a59c468c982ecb7d3f8d77ec5a834e3c194 (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 c2b719d209ce80f0fc0d0ac9c9e1e80017b953ea
Author: Paul Ramsey <pramsey at cleverelephant.ca>
Date: Thu Jun 5 11:07:51 2025 -0700
Avoid free when pointer is null. References #5921
diff --git a/NEWS b/NEWS
index 6e4009914..4d27374ed 100644
--- a/NEWS
+++ b/NEWS
@@ -12,7 +12,7 @@ Proj 4.9+ required.
- #5876, Fix ST_AddPoint with empty point argument (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.2.8
2024/12/22
diff --git a/postgis/gserialized_estimate.c b/postgis/gserialized_estimate.c
index e0daa240c..4f1b5f782 100644
--- a/postgis/gserialized_estimate.c
+++ b/postgis/gserialized_estimate.c
@@ -2286,7 +2286,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 | 2 +-
postgis/gserialized_estimate.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
hooks/post-receive
--
PostGIS
More information about the postgis-tickets
mailing list