[postgis-tickets] r14666 - Fix crash on face-collapsing edge change
Sandro Santilli
strk at keybit.net
Tue Feb 23 07:53:12 PST 2016
Author: strk
Date: 2016-02-23 07:53:12 -0800 (Tue, 23 Feb 2016)
New Revision: 14666
Modified:
trunk/liblwgeom/lwgeom_topo.c
Log:
Fix crash on face-collapsing edge change
See #3463
Modified: trunk/liblwgeom/lwgeom_topo.c
===================================================================
--- trunk/liblwgeom/lwgeom_topo.c 2016-02-23 14:49:09 UTC (rev 14665)
+++ trunk/liblwgeom/lwgeom_topo.c 2016-02-23 15:53:12 UTC (rev 14666)
@@ -3586,6 +3586,13 @@
if ( oldedge->face_left != 0 )
{
nface1 = lwt_GetFaceGeometry(topo, oldedge->face_left);
+ if ( ! nface1 )
+ {
+ lwerror("lwt_ChangeEdgeGeom could not construct face %"
+ PRId64 ", on the left of edge %" PRId64,
+ oldedge->face_left, edge_id);
+ return -1;
+ }
#if 0
{
size_t sz;
@@ -3604,6 +3611,13 @@
&& oldedge->face_right != oldedge->face_left )
{
nface2 = lwt_GetFaceGeometry(topo, oldedge->face_right);
+ if ( ! nface2 )
+ {
+ lwerror("lwt_ChangeEdgeGeom could not construct face %"
+ PRId64 ", on the right of edge %" PRId64,
+ oldedge->face_right, edge_id);
+ return -1;
+ }
#if 0
{
size_t sz;
More information about the postgis-tickets
mailing list