[postgis-tickets] [PostGIS] #4165: ST_AsText hangs backend
PostGIS
trac at osgeo.org
Thu Sep 6 10:58:27 PDT 2018
#4165: ST_AsText hangs backend
-----------------------+---------------------------
Reporter: komzpa | Owner: pramsey
Type: defect | Status: new
Priority: critical | Milestone: PostGIS 2.5.0
Component: postgis | Version: trunk
Resolution: | Keywords:
-----------------------+---------------------------
Comment (by pramsey):
It looks like the assertion (why?) in lwprint_double() is causing a fault
(at least for me in OSX). I'm not sure why we want to stop in the case
that the requested size is larger than the buffer... snprintf has nicely
avoided over-writing the ends of the buffer. I guess because we do want to
support arbitrarily large precisions in double output? In that case
Algunenano's suggestion to increase input buffer size to match requested
precision size makes sense (at the expense of allocation, so things will
get slower (unless we do the trick of only allocating on the heap when the
request is > MAXBUFFERSIZE)
--
Ticket URL: <https://trac.osgeo.org/postgis/ticket/4165#comment:4>
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