#3093 closed defect (fixed)
[PATCH] DBFOpenLL can crash on corrupted DBF
Reported by: | Even Rouault | Owned by: | warmerdam |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | OGR_SF | Version: | unspecified |
Severity: | normal | Keywords: | shapelib |
Cc: |
Description
If the nHeaderLength field of the DBF header is < 32, in particular if it's equal to 0, a crash can occur at the line (if( psDBF->sHooks.FRead( pabyBuf, nHeadLen-32, 1, psDBF->fp ) != 1 ).
Attachments (1)
Change History (5)
by , 15 years ago
Attachment: | ticket_3093.patch added |
---|
comment:1 by , 15 years ago
comment:2 by , 14 years ago
Milestone: | → 1.7.0 |
---|---|
Resolution: | → fixed |
Status: | new → closed |
Patch applied upstream in shapelib, and brought into GDAL trunk (r17917).
comment:3 by , 14 years ago
Milestone: | 1.7.0 → 1.6.4 |
---|
Note:
See TracTickets
for help on using tickets.
Note : this issue was discovered when running ogr_shape_28 with OG python bindings because of a reopening of a still opened datasource. Test fixed in r17499.