[SCM] PostGIS branch stable-3.1 updated. 3.1.11-29-g9bd8a0d22
git at osgeo.org
git at osgeo.org
Thu Jun 5 11:08:53 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.1 has been updated
via 9bd8a0d223e02213d6f6f0c04bbbff6612072306 (commit)
from e5d183bd054c2ae6c85f9662fa7a8755045ab4ea (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 9bd8a0d223e02213d6f6f0c04bbbff6612072306
Author: Paul Ramsey <pramsey at cleverelephant.ca>
Date: Thu Jun 5 11:08:40 2025 -0700
Avoid free when pointer is null. References #5921
diff --git a/NEWS b/NEWS
index df3e279d2..a2c57a165 100644
--- a/NEWS
+++ b/NEWS
@@ -9,6 +9,7 @@ YYYY/MM/DD
- #5818, GT-244 Fix CG_IsSolid function (Loïc Bartoletti)
- #5885, Fix documentation about grid-based overlay operations (Sandro Santilli)
- PCRE2 support for more modern systems (Paul Ramsey)
+ - #5921, Crash freeing uninitialized pointer (Arsenii Mukhin)
PostGIS 3.1.12
diff --git a/postgis/gserialized_estimate.c b/postgis/gserialized_estimate.c
index 8a1c8d9f5..13bab5e3c 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 | 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