[postgis-tickets] [SCM] PostGIS branch master updated. 3.2.0alpha1-15-gaa1428f

git at osgeo.org git at osgeo.org
Wed Sep 22 12:13:46 PDT 2021


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  aa1428ffdb40515a06fb0ad1ab4ec292b3d30b6d (commit)
       via  4bcabb6db9de7c8c098cf452f1be2c0ea093f2de (commit)
       via  33b01e0177f1d18649fe9aee5677a250cc77f97a (commit)
      from  3ff851abfa515b9841007c12a70b83170ccd0305 (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 aa1428ffdb40515a06fb0ad1ab4ec292b3d30b6d
Merge: 3ff851a 4bcabb6
Author: Darafei Praliaskouski <me at komzpa.net>
Date:   Wed Sep 22 22:13:08 2021 +0300

    Merge remote-tracking branch 'gh/pr/642/merge'


commit 4bcabb6db9de7c8c098cf452f1be2c0ea093f2de
Merge: 5b8bb33 33b01e0
Author: kalenikaliaksandr <kalenik.aliaksandr at gmail.com>
Date:   Wed Sep 22 09:30:49 2021 +0000

    Merge 33b01e0177f1d18649fe9aee5677a250cc77f97a into 5b8bb33de39731c93b61e8de5e8a78865b1bcb14


commit 33b01e0177f1d18649fe9aee5677a250cc77f97a
Author: Aliaksandr Kalenik <kalenik.aliaksandr at gmail.com>
Date:   Wed Sep 22 12:30:41 2021 +0300

    ST_LocateBetweenElevations: fix segfault on interrupt

diff --git a/liblwgeom/lwlinearreferencing.c b/liblwgeom/lwlinearreferencing.c
index 98bce00..35628bf 100644
--- a/liblwgeom/lwlinearreferencing.c
+++ b/liblwgeom/lwlinearreferencing.c
@@ -736,6 +736,9 @@ lwpoly_clip_to_ordinate_range(const LWPOLY *poly, char ordinate, double from, do
 		/* Ret number of points */
 		POINTARRAY *pa = ptarray_clamp_to_ordinate_range(poly->rings[i], ordinate, from, to, LW_TRUE);
 
+		if (!pa)
+			return NULL;
+
 		if (pa->npoints >= 4)
 			lwpoly_add_ring(poly_res, pa);
 		else
@@ -764,6 +767,9 @@ lwtriangle_clip_to_ordinate_range(const LWTRIANGLE *tri, char ordinate, double f
 	LWCOLLECTION *lwgeom_out = lwcollection_construct_empty(TINTYPE, tri->srid, hasz, hasm);
 	POINTARRAY *pa = ptarray_clamp_to_ordinate_range(tri->points, ordinate, from, to, LW_TRUE);
 
+	if (!pa)
+		return NULL;
+
 	if (pa->npoints >= 4)
 	{
 		POINT4D first = getPoint4d(pa, 0);

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

Summary of changes:
 liblwgeom/lwlinearreferencing.c | 6 ++++++
 1 file changed, 6 insertions(+)


hooks/post-receive
-- 
PostGIS


More information about the postgis-tickets mailing list