[postgis-tickets] [PostGIS] #2185: Geometry output functions crash server with invalid WKT
PostGIS
trac at osgeo.org
Sun May 19 11:45:55 PDT 2013
#2185: Geometry output functions crash server with invalid WKT
------------------------+---------------------------------------------------
Reporter: mwtoews | Owner: pramsey
Type: defect | Status: new
Priority: blocker | Milestone: PostGIS 2.0.4
Component: postgis | Version: 2.0.x
Keywords: windows 64 |
------------------------+---------------------------------------------------
Comment(by robe):
I was wondering why if in fact geometry(TEXT) is the culprit ,why it
doesn't crash like the others. The reason is simple since the cost of it
is set to 1 (because its a C func and we set no costs) it never gets
cached. The SQL functions on the other hand since we weren't setting
costs were set to 100 presumably a threshold that 9.2edb x64 thought
worthy of caching.
I committed a less than honorable patch at r11476 for trunk (just because
the costs are set too high anyway and it happens to as a side effect sugar
coat this issue)
and technicallly no one should be using these functions since they are
there just to prevent text reps from falling into the geography trap.
I'm going to experiment and see if I set the costs high enough under
ming64 (which doesn't crash), if I can trigger the crash. Would be
interesting to see if increasing the cost would trigger the issue on other
systems.
--
Ticket URL: <http://trac.osgeo.org/postgis/ticket/2185#comment:29>
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