[postgis-tickets] [PostGIS] #4236: gidx_to_string doesn't allocate enough memory
PostGIS
trac at osgeo.org
Tue Nov 13 08:36:24 PST 2018
#4236: gidx_to_string doesn't allocate enough memory
------------------------+---------------------------
Reporter: Algunenano | Owner: Algunenano
Type: defect | Status: assigned
Priority: high | Milestone: PostGIS 3.0.0
Component: postgis | Version: 2.3.x
Keywords: |
------------------------+---------------------------
Manifested in some logs:
{{{
got boxes GIDX( 4.99354171753 1.33285224438 -3.40282346639e+38
3.34260988235, 91.8126296997 100.783157349 3.40282346639e+38 98.150138855
)� and GIDX( 67.4631118774 3.76653146744, 76.9421615601 23.6310768127 )
got boxes GIDX( 7.67286014557 3.55379080772 -3.40282346639e+38
1.00054788589, 96.2146835327 99.1751022339 3.40282346639e+38 94.6226959229
�
}}}
For `" %.12g"` you need at most 20 chars, but is reserving only 15.
Code has been this way since it was introduced, so all supported releases
are affected.
--
Ticket URL: <https://trac.osgeo.org/postgis/ticket/4236>
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