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 , 7 years ago
comment:2 by , 7 years ago
Milestone: | PostGIS 2.4.1 → PostGIS 2.2.6 |
---|
comment:7 by , 7 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
Please make sure to set Milestone to the oldest affected branch. Great to see unit test included in that PR!