Opened 10 years ago

Closed 10 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
Cc:

Description

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 10 years ago.

Download all attachments as: .zip

Change History (2)

Changed 10 years ago by Even Rouault

Attachment: ticket_3428.patch added

comment:1 Changed 10 years ago by warmerdam

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.