[postgis-devel] [PostGIS] #1697: Crash in GiST index with empty MultiPolygons

PostGIS trac at osgeo.org
Tue Mar 27 12:31:39 PDT 2012


#1697: Crash in GiST index with empty MultiPolygons
---------------------------+------------------------------------------------
 Reporter:  realityexists  |       Owner:  pramsey      
     Type:  defect         |      Status:  new          
 Priority:  critical       |   Milestone:  PostGIS 2.0.0
Component:  postgis        |     Version:  trunk        
 Keywords:                 |  
---------------------------+------------------------------------------------

Comment(by pramsey):

 Dumb luck I think. The first fixed number of bytes are being copied in as
 a key, it's a garbage key, but it's rarely intersects with other stuff. We
 could probably find non-crashing bugs related to it, like EMPTY geometries
 being returned in index searches when they shouldn't because the garbage
 key happens to intersect the search key. The reason we get a crash in the
 varlena keys is because the garbage in the varsize slot causes insane
 memory allocations to occur in the gidx_copy.

-- 
Ticket URL: <http://trac.osgeo.org/postgis/ticket/1697#comment:16>
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