[fdo][FDO320][New] SHP: crash on corrupted SHP file

Dan Stoica dan.stoica at autodesk.com
Fri Dec 1 10:06:02 EST 2006


You can view the artifact detail at the following URL:

    https://fdo.osgeo.org/servlets/Scarab/id/FDO320

Type
 Defect

Artifact ID
 FDO320 (SHP: crash on corrupted SHP file)

Reported by
 Dan Stoica
 danstoica (dan.stoica at autodesk.com)

New artifact details:
---------------------------------------------------------

- Summary set to new value
  SHP: crash on corrupted SHP file
- Description set to new value
  The SHP crashed when connecting to an invalid shp file. 

The crash was caused by the SHP file length in question being less than 100 
bytes, i.e. the length of the header. The FileRead() throws an NULL exception 
(because Windows' GetLastError() returns nothing for some reason) which led 
the client code to crash. 

- Artifact Status set to new value
  New
- Artifact created
- Steps to Reproduce set to new value
  Create a text file with a length less than 100 bytes. 

Rename it as .SHP.

Try to connect to this file. The provider is crashing while throwing an exception with a NULL message.

---------------------------------------------------------
This message was automatically generated by Project Tracker.








More information about the Fdo_issues mailing list