[postgis-tickets] [PostGIS] #5106: ST_RemEdgeNewFace and ST_RemEdgeModFace crash backend upon not finding side faces

PostGIS trac at osgeo.org
Mon Jan 30 07:02:51 PST 2023


#5106: ST_RemEdgeNewFace and ST_RemEdgeModFace crash backend upon not finding side
faces
-----------------------+---------------------------
  Reporter:  laopsahl  |      Owner:  strk
      Type:  defect    |     Status:  new
  Priority:  blocker   |  Milestone:  PostGIS 3.4.0
 Component:  topology  |    Version:  3.2.x
Resolution:            |   Keywords:
-----------------------+---------------------------
Comment (by strk):

 Simplified testcase (still needing to DROP foreign key constraints):
 {{{
 SELECT topology.CreateTopology('t5106');

 INSERT INTO t5106.node VALUES ( 1, NULL, 'POINT(0 0)' );

 -- Cannot reference non-existing faces w/out dropping
 -- these constraints
 ALTER TABLE t5106.edge_data DROP constraint left_face_exists;
 ALTER TABLE t5106.edge_data DROP constraint right_face_exists;

 INSERT INTO t5106.edge VALUES
 (
   1, -- edge_id
   1, 1, -- start/end node
   1, -1, -- next left/right edge
   1, 2, -- left/right faces (different, both non-0 and non existent)
   'LINESTRING(0 0,10 0,10 10,0 0)'
 );

 SELECT 't5106', ST_RemEdgeModFace('t5106', 1);
 }}}
-- 
Ticket URL: <https://trac.osgeo.org/postgis/ticket/5106#comment:8>
PostGIS <http://trac.osgeo.org/postgis/>
The PostGIS Trac is used for bug, enhancement & task tracking, a user and developer wiki, and a view into the subversion code repository of PostGIS project.


More information about the postgis-tickets mailing list