[postgis-tickets] [PostGIS] #5320: ST_SimplifyPreserveTopology crashes with infinity coordinates

PostGIS trac at osgeo.org
Thu Feb 9 08:51:52 PST 2023


#5320: ST_SimplifyPreserveTopology crashes with infinity coordinates
----------------------+---------------------------
  Reporter:  robe     |      Owner:  robe
      Type:  defect   |     Status:  assigned
  Priority:  blocker  |  Milestone:  PostGIS 3.0.9
 Component:  postgis  |    Version:  master
Resolution:           |   Keywords:
----------------------+---------------------------
Comment (by mdavis):

 Replying to [comment:7 pramsey]:
 > I think in general having known infinite loops in GEOS is bad? Like,
 "feed this function an Inf and it'll lock up on you". So a GEOS patch is
 not a bad idea?

 The bright light of a new day has clarified my thinking.  Yes, I agree
 that GEOS should be fixed so that it does not crash for any inputs.

 A fix in `Quadtree` is probably the minimum required, for this case.  I
 wonder how to fix all the other potential cases of Inf causing crashes?
 It's tempting to put a check in Envelope creation...  but maybe that's too
 pervasive.

 For sure validity checking should be tightened up to report Inf ordinates
 as invalid.
-- 
Ticket URL: <https://trac.osgeo.org/postgis/ticket/5320#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