[postgis-devel] [PostGIS] #1799: Passing zero as max_length to ST_Segmentize() causes crash
PostGIS
trac at osgeo.org
Wed May 2 19:42:56 PDT 2012
#1799: Passing zero as max_length to ST_Segmentize() causes crash
---------------------+------------------------------------------------------
Reporter: skwash | Owner: pramsey
Type: defect | Status: new
Priority: medium | Milestone: PostGIS 2.0.1
Component: postgis | Version: 2.0.x
Keywords: |
---------------------+------------------------------------------------------
Running something like the following causes server process to max out the
CPU and seems to require a kill -9 to stop the process (crashing postgres
entirely).
{{{
SELECT ST_Segmentize(ST_MakeLine(ST_MakePoint(0,0), ST_MakePoint(1,1)),
0);
}}}
It doesn't really make sense to pass zero, but I'm sure someone else at
some point will try it with worse results than what I caused myself today.
;) A simple param validation to catch this would probably be useful to
ensure idiots (like me!) don't do this on accident.
--
Ticket URL: <http://trac.osgeo.org/postgis/ticket/1799>
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-devel
mailing list