[SCM] PostGIS branch master updated. 3.7.0beta1-43-g173625554

git at osgeo.org git at osgeo.org
Sat Jul 25 23:01:52 PDT 2026


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, master has been updated
       via  173625554850bd7c8214087d5dcccd12c3af5865 (commit)
       via  a73d06ef7c91236d2da1687c2912320593828d1c (commit)
      from  f402e3b5af3d6e42367b8ddc455fe8590ba73d22 (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 173625554850bd7c8214087d5dcccd12c3af5865
Merge: f402e3b5a a73d06ef7
Author: Darafei Praliaskouski <komzpa at gmail.com>
Date:   Sat Jul 25 23:01:51 2026 -0700

    Merge pull request 'liblwgeom: avoid invalid CUnit callback cast' (!518) from Komzpa/postgis:codex/ubsan-lwmpoint-cumisc-20260726 into master
    
    Reviewed-on: https://gitea.osgeo.org/postgis/postgis/pulls/518


commit a73d06ef7c91236d2da1687c2912320593828d1c
Author: Darafei Praliaskouski <me at komzpa.net>
Date:   Sun Jul 26 02:36:23 2026 +0400

    liblwgeom: avoid invalid CUnit callback cast

diff --git a/liblwgeom/cunit/cu_misc.c b/liblwgeom/cunit/cu_misc.c
index cdf14d5ee..79d96e94d 100644
--- a/liblwgeom/cunit/cu_misc.c
+++ b/liblwgeom/cunit/cu_misc.c
@@ -242,10 +242,15 @@ static void test_clone(void)
 	lwgeom_free(geom1);
 }
 
+static LWGEOM *
+lwmpoint_from_lwgeom_as_lwgeom(LWGEOM *geom)
+{
+	return lwmpoint_as_lwgeom(lwmpoint_from_lwgeom(geom));
+}
+
 static void test_lwmpoint_from_lwgeom(void)
 {
-	/* This cast is so ugly, we only want to do it once.  And not even that. */
-	LWGEOM* (*to_points)(LWGEOM*) = (LWGEOM* (*)(LWGEOM*)) &lwmpoint_from_lwgeom;
+	LWGEOM *(*to_points)(LWGEOM *) = lwmpoint_from_lwgeom_as_lwgeom;
 
 	do_fn_test(to_points, "MULTIPOLYGON (EMPTY)", "MULTIPOINT EMPTY");
 	do_fn_test(to_points, "POINT (30 10)", "MULTIPOINT ((30 10))");

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

Summary of changes:
 liblwgeom/cunit/cu_misc.c | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)


hooks/post-receive
-- 
PostGIS


More information about the postgis-tickets mailing list