[postgis-tickets] [PostGIS] #4031: ST_CurveToLine with small tolerance sometimes causes invalid memory alloc request size
PostGIS
trac at osgeo.org
Tue Apr 24 06:29:23 PDT 2018
#4031: ST_CurveToLine with small tolerance sometimes causes invalid memory alloc
request size
----------------------+----------------------------
Reporter: kkgeodk | Owner: strk
Type: defect | Status: assigned
Priority: medium | Milestone: PostGIS 2.5.0
Component: postgis | Version: 2.2.x
Resolution: | Keywords: ST_CurveToLine
----------------------+----------------------------
Comment (by strk):
@kkgeodk can you confirm r16553 fixes the problem for you ?
In the specific case you reported even 0.01 tolerance was too big for that
specific arc in the set of curves (there was a very tiny curve in the
set). The patch in r16553 would allow you to still use 0.01 (or even 1) as
a max deviance w/out that ever being a problem against smaller curves.
Once confirmed, the patch should be backported to all supported branches.
--
Ticket URL: <https://trac.osgeo.org/postgis/ticket/4031#comment:11>
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