Opened 9 months ago

Closed 9 months ago

#5686 closed defect (fixed)

Garden crash ST_NumInteriorRings on Triangles

Reported by: robe Owned by: pramsey
Priority: blocker Milestone: PostGIS 3.5.0
Component: postgis Version: master
Keywords: Cc:

Description

I don't think this has been backported, but I might be mistaken, if so might need to backport.

SELECT ST_NumInteriorRings('TRIANGLE ((
                -71.0821 42.3036,
                -71.0821 42.3936,
                -71.0901 42.3036,
                -71.0821 42.3036
            ))'::geometry);

Change History (8)

comment:1 by pramsey, 9 months ago

No, that kills my head. Not sure if it's affects older branches.

comment:2 by pramsey, 9 months ago

Doesn't crash my 3.4, but the answer is awesome

SELECT ST_NumInteriorRings('TRIANGLE ((
                -71.0821 42.3036,
                -71.0821 42.3936,
                -71.0901 42.3036,
                -71.0821 42.3036
            ))'::geometry);
 st_numinteriorrings 
---------------------
          2139062141
(1 row)

comment:3 by Paul Ramsey <pramsey@…>, 9 months ago

In 376d4ec7/git:

ST_NumInteriorRings for Triangle, references #5686

comment:4 by Paul Ramsey <pramsey@…>, 9 months ago

In 31722bf/git:

ST_NumInteriorRings for Triangle, references #5686

comment:5 by Paul Ramsey <pramsey@…>, 9 months ago

In 1787c2d8/git:

ST_NumInteriorRings for Triangle, references #5686

comment:6 by Paul Ramsey <pramsey@…>, 9 months ago

In c9d05de9/git:

ST_NumInteriorRings for Triangle, references #5686

comment:7 by Paul Ramsey <pramsey@…>, 9 months ago

In e9437f04/git:

ST_NumInteriorRings for Triangle, references #5686

comment:8 by pramsey, 9 months ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.