[postgis-tickets] [PostGIS] #4003: lwpoly_construct_circle: Division by zero
PostGIS
trac at osgeo.org
Fri Jan 26 04:14:44 PST 2018
#4003: lwpoly_construct_circle: Division by zero
------------------------+---------------------------
Reporter: Algunenano | Owner: strk
Type: defect | Status: new
Priority: medium | Milestone: PostGIS 2.5.0
Component: liblwgeom | Version: trunk
Keywords: |
------------------------+---------------------------
Delay calculating theta until after the number of segments is checked.
Since the division by zero is undefined the compiler could optimize away
the `if (segments_per_quarter < 1)` check.
Github PR: https://github.com/postgis/postgis/pull/199
--
Ticket URL: <https://trac.osgeo.org/postgis/ticket/4003>
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