[fdo-trac] #429: SHP provider crash in import/export of the corrupted or invalid spatial index file(idx)

FDO trac_fdo at osgeo.org
Wed Nov 19 01:08:50 EST 2008


#429: SHP provider crash in import/export of the corrupted or invalid spatial
index file(idx)
----------------------------+-----------------------------------------------
   Reporter:  stevenxu      |       Owner:  StevenXu
       Type:  enhancement   |      Status:  new     
   Priority:  major         |   Milestone:          
  Component:  SHP Provider  |     Version:  3.4.0   
   Severity:  3             |    Keywords:          
External_id:                |  
----------------------------+-----------------------------------------------
 The corrupted or invalid spatial index file can lead unhandled
 FdoException in destructor of class "ShpFileSet", as following:

 \Providers\SHP\Src\Provider\ShpFileSet.cpp

 ShpFileSet::~ShpFileSet (void)
 {
    if ( mFilesExist ){
      ReopenFileset( FdoCommonFile::IDF_OPEN_READ );

      .....
 }

 The function "ReopenFileset" will open the idx file and generate a
 FdoException when the idx file is invalid.
 This unhandled exception can lead application crash.

 You can modify the idx file deliberately to reproduce this problem.
 For example, use text editor to modify the first characters of this file
 as any others.

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


More information about the fdo-trac mailing list