Ticket #3428 (closed defect: fixed)

Opened 3 years ago

Last modified 3 years ago

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

Reported by: 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

ticket_3428.patch Download (30.5 KB) - added by rouault 3 years ago.

Change History

Changed 3 years ago by rouault

Changed 3 years ago by warmerdam

  • status changed from new to closed
  • resolution set to fixed
  • component changed from default to GDAL_Raster
  • milestone set to 1.8.0

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.