Opened 13 years ago

Closed 13 years ago

#3428 closed defect (fixed)

[PATCH] HFA - Make driver more robust against corrupted data

Reported by: Even Rouault Owned by: warmerdam
Priority: normal Milestone: 1.8.0
Component: GDAL_Raster Version: svn-trunk
Severity: normal Keywords: hfa


Attached a patch that avoid segfaults or other Valgrind warnings when reading corrupted HFA data. Most of them have been found by running a small script that alters sequentially each byte of 251_head.dat and 251_tail.dat

Attachments (1)

ticket_3428.patch (30.5 KB ) - added by Even Rouault 13 years ago.

Download all attachments as: .zip

Change History (2)

by Even Rouault, 13 years ago

Attachment: ticket_3428.patch added

comment:1 by warmerdam, 13 years ago

Component: defaultGDAL_Raster
Milestone: 1.8.0
Resolution: fixed
Status: newclosed

Corrections applied in trunk (r18895). The robustness improvements do not seem critical and are at least a bit scary, so I'm not going to backport them into stable branches.

Note: See TracTickets for help on using tickets.