[fdo-trac] #564: SHP provider crashed when reallocing memory in
ReadRawDataBlock.
FDO
trac_fdo at osgeo.org
Wed Sep 30 02:38:26 EDT 2009
#564: SHP provider crashed when reallocing memory in ReadRawDataBlock.
------------------------+---------------------------------------------------
Reporter: StevenXu | Owner: StevenXu
Type: defect | Status: new
Priority: major | Milestone: 3.5.0
Component: FDO API | Version: 3.4.0
Severity: 2 | Keywords:
External_id: 1242062 |
------------------------+---------------------------------------------------
The un-reasonble memory size directly results in this crash. For example,
sometimes the size of reallocing memory is greater than 1 GB.
Why the SHP provider need to realloc so large size of memory? SHP provider
should get the wrong size of the data block in runtime.
In some cases, the user's SHP file violated the SHP file specification so
that our SHP provider misunderstand them.
Another possible reason, there is a defect in the function
ShpFileSet::MakeSpace, which would corrupt SHP file under some extremed
conditions. At last, this corrupted SHP file result in this crash.
--
Ticket URL: <http://trac.osgeo.org/fdo/ticket/564>
FDO <http://fdo.osgeo.org/>
Feature Data Objects
More information about the fdo-trac
mailing list