Ticket #1841 (closed defect: fixed)

Opened 11 months ago

Last modified 11 months ago

Missing byte swap in HFA driver causes spill files not to open in Imagine

Reported by: gillins Assigned to: warmerdam
Priority: normal Milestone: 1.4.3
Component: GDAL_Raster Version: 1.4.2
Severity: normal Keywords: HFA
Cc:

Description

in hfaopen.cpp, function HFACreateSpillStack(), some 'magic' numbers are written to the file, they are all byte swapped except '0x30000'. This causes Imagine to produce strange 'Out of Memory' errors on files created on Big Endian machines.

Attachments

hfaopen.cpp.patch (321 bytes) - added by gillins on 09/16/07 18:33:07.
proposed byte swap patch

Change History

09/16/07 18:33:07 changed by gillins

  • attachment hfaopen.cpp.patch added.

proposed byte swap patch

09/16/07 19:38:18 changed by warmerdam

  • keywords set to HFA.
  • component changed from default to GDAL_Raster.
  • status changed from new to closed.
  • resolution set to fixed.

Sam,

Patch applied in trunk and 1.4 branch.

Thanks