Opened 10 years ago
Closed 10 years ago
#3177 closed defect (fixed)
gserialized_is_empty cannot handle nested empty cases
Reported by: | pramsey | Owned by: | pramsey |
---|---|---|---|
Priority: | critical | Milestone: | PostGIS 2.1.8 |
Component: | postgis | Version: | 2.1.x |
Keywords: | Cc: |
Description
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.
Note:
See TracTickets
for help on using tickets.
2.1 at r13698 and trunk at r13700