[SCM] PostGIS branch stable-3.5 updated. 3.5.3-42-gcf7d4f492

git at osgeo.org git at osgeo.org
Fri Aug 8 13:43:49 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  cf7d4f492d3201fe546d27a3b1d79664002d35d4 (commit)
      from  30a45040a71a57d972c7be70365462374010c2f0 (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 cf7d4f492d3201fe546d27a3b1d79664002d35d4
Author: Paul Ramsey <pramsey at cleverelephant.ca>
Date:   Fri Aug 8 13:43:31 2025 -0700

    Use memset rather than bzero, closes #5407

diff --git a/NEWS b/NEWS
index b59b6f5a9..77c600826 100644
--- a/NEWS
+++ b/NEWS
@@ -25,6 +25,7 @@ PostgreSQL 12-18 required. GEOS 3.8+ required. Proj 6.1+ required.
 - #5927, ST_IsCollection throwing exception (Paul Ramsey)
 - #5902, ST_PointFromText cannot create geometries with M (Paul Ramsey)
 - #5943, Memory leak in handling GEOS GeometryFactory (Megan Ma)
+- #5407, Use memset in place of bzero (Paul Ramsey)
 
 
 PostGIS 3.5.3
diff --git a/liblwgeom/ptarray.c b/liblwgeom/ptarray.c
index f229d42de..7d17775cf 100644
--- a/liblwgeom/ptarray.c
+++ b/liblwgeom/ptarray.c
@@ -2227,7 +2227,7 @@ ptarray_scroll_in_place(POINTARRAY *pa, const POINT4D *pt)
 	/* TODO: reduce allocations */
 	tmp = ptarray_construct(FLAGS_GET_Z(pa->flags), FLAGS_GET_M(pa->flags), pa->npoints);
 
-	bzero(getPoint_internal(tmp, 0), (size_t)ptsize * pa->npoints);
+	memset(getPoint_internal(tmp, 0), 0,  (size_t)ptsize * pa->npoints);
 	/* Copy the block from found point to last point into the output array */
 	memcpy(
 		getPoint_internal(tmp, 0),

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

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


hooks/post-receive
-- 
PostGIS


More information about the postgis-tickets mailing list