[SCM] PostGIS branch stable-3.5 updated. 3.5.3-12-g236c185da

git at osgeo.org git at osgeo.org
Fri Jun 6 12:30:08 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  236c185daac01290210124f5a8942c1de4264504 (commit)
       via  396f6ea72559fb9f9b1651fcd3358a339a1bef9e (commit)
      from  4bde0abba024af5a1597e75024270f1980787cc8 (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 236c185daac01290210124f5a8942c1de4264504
Author: Paul Ramsey <pramsey at cleverelephant.ca>
Date:   Fri Jun 6 12:29:30 2025 -0700

    News entry for #5909

diff --git a/NEWS b/NEWS
index d42cb9c26..1ff810d28 100644
--- a/NEWS
+++ b/NEWS
@@ -11,6 +11,7 @@ PostgreSQL 12-18 required. GEOS 3.8+ required. Proj 6.1+ required.
 - #5921, Crash freeing uninitialized pointer (Arsenii Mukhin)
 - #5912, Crash on GML with xlink and no prefix (Paul Ramsey)
 - #5905, Crash on deeply nested geometries (Paul Ramsey)
+- #5909, ST_ValueCount crashes on empty table (Paul Ramsey)
 
 
 PostGIS 3.5.3

commit 396f6ea72559fb9f9b1651fcd3358a339a1bef9e
Author: Paul Ramsey <pramsey at cleverelephant.ca>
Date:   Fri Jun 6 12:28:24 2025 -0700

    ST_ValueCount crashes on empty table, references #5909

diff --git a/raster/rt_pg/rtpg_statistics.c b/raster/rt_pg/rtpg_statistics.c
index 4db8f7295..bffdf0e6b 100644
--- a/raster/rt_pg/rtpg_statistics.c
+++ b/raster/rt_pg/rtpg_statistics.c
@@ -2073,7 +2073,7 @@ Datum RASTER_valueCountCoverage(PG_FUNCTION_ARGS) {
 	}
 	/* do when there is no more left */
 	else {
-		pfree(covvcnts2);
+		if (covvcnts2) pfree(covvcnts2);
 		SRF_RETURN_DONE(funcctx);
 	}
 }

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

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


hooks/post-receive
-- 
PostGIS


More information about the postgis-tickets mailing list