Opened 7 years ago

Closed 7 years ago

#3874 closed defect (fixed)

Error: lw_dist2d_pt_arc division by zero

Reported by: algunenano Owned by: pramsey
Priority: medium Milestone: PostGIS 2.2.6
Component: postgis Version: 2.4.x
Keywords: Cc:

Description

In lw_dist2d_pt_arc, if the point is in the center of the arc a division by zero happens which leads to undefined behaviour.

I've created a PR in Github with the test and changes needed to fix it: https://github.com/postgis/postgis/pull/147

Change History (7)

comment:1 by strk, 7 years ago

Please make sure to set Milestone to the oldest affected branch. Great to see unit test included in that PR!

comment:2 by algunenano, 7 years ago

Milestone: PostGIS 2.4.1PostGIS 2.2.6

comment:3 by pramsey, 7 years ago

In 15944:

lw_dist2d_pt_arc division by zero (References #3874)

comment:4 by pramsey, 7 years ago

In 15945:

lw_dist2d_pt_arc division by zero (References #3874)

comment:5 by pramsey, 7 years ago

In 15946:

lw_dist2d_pt_arc division by zero (References #3874)

comment:6 by pramsey, 7 years ago

In 15947:

lw_dist2d_pt_arc division by zero (References #3874)

comment:7 by pramsey, 7 years ago

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