[fdo-trac] #368: SHP provider: handle corrupted .SHX entries

FDO trac_fdo at osgeo.org
Wed Aug 6 10:56:28 EDT 2008


#368: SHP provider: handle corrupted .SHX entries
----------------------------+-----------------------------------------------
   Reporter:  danstoica     |       Owner:  danstoica
       Type:  defect        |      Status:  new      
   Priority:  major         |   Milestone:  3.4.0    
  Component:  SHP Provider  |     Version:  3.2.0    
   Severity:  2             |    Keywords:           
External_id:  1075085       |  
----------------------------+-----------------------------------------------
 The .SHX file contains entries {geometry offset in the .SHP file, geometry
 size} and the entry number corresponds to the record # in the .DBF file.
 Found a couple of corrupted .SHX files containing "geometry size" < 0
 entries and the provider didn't check for this. The result was a crash
 during memory allocation.

 The fix consists in: a) ignore the corrupted records when building the
 spatial index and b) return NULL geometries to the user when hitting such
 records.

-- 
Ticket URL: <http://trac.osgeo.org/fdo/ticket/368>
FDO <http://fdo.osgeo.org/>
Feature Data Objects


More information about the fdo-trac mailing list