[postgis-tickets] [PostGIS] #3177: gserialized_is_empty cannot handle nested empty cases

PostGIS trac at osgeo.org
Wed Jun 24 11:51:10 PDT 2015


#3177: gserialized_is_empty cannot handle nested empty cases
----------------------+---------------------------
 Reporter:  pramsey   |      Owner:  pramsey
     Type:  defect    |     Status:  new
 Priority:  critical  |  Milestone:  PostGIS 2.1.8
Component:  postgis   |    Version:  2.1.x
 Keywords:            |
----------------------+---------------------------
 {{{
 SELECT ST_Distance(
   'MULTILINESTRING(EMPTY,EMPTY)'::geometry::geography,
   'POINT(0 0)'::geography);
 }}}
 The correct answer is NULL, the actual response is an error, as the
 geometries slip past the empty guard at the top and into the
 lwgeom_distance function that returns -1 on error. Stuffing enough empties
 into the geography circ_tree code seemed to cause enough errors to
 eventually crash a backend. Not clear why. With the guards that won't
 happen.

--
Ticket URL: <https://trac.osgeo.org/postgis/ticket/3177>
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