[fdo-trac] #811: SHP provider: file pointer overflow in the case of
large DBF files
FDO
trac_fdo at osgeo.org
Thu Jan 19 15:57:24 EST 2012
#811: SHP provider: file pointer overflow in the case of large DBF files
-------------------------+--------------------------------------------------
Reporter: danstoica | Owner: gregboone
Type: defect | Status: new
Priority: major | Milestone: 3.6.0
Component: FDO API | Version: 3.6.0
Severity: 2 | Keywords:
External_id: |
-------------------------+--------------------------------------------------
The following code is faulty for large DBF files (as number of records)
and large record size:
SetFilePointer64((FdoInt64)(m_nRecordStart + (nRecord *
m_DBFHeader.wRecordSize)))
All the integers involved in the file pointer values are Int32 thus the
result is an int32 (max_int= 2147483647). In the case of recordNumber =
700000 a record size of 3070 will be enough to result into a negative
number for the file pointer.
--
Ticket URL: <http://trac.osgeo.org/fdo/ticket/811>
FDO <http://fdo.osgeo.org/>
Feature Data Objects
More information about the fdo-trac
mailing list