Ticket #1841 (closed defect: fixed)

Opened 4 years ago

Last modified 4 years ago

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

Reported by: gillins Owned by: 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 Download (321 bytes) - added by gillins 4 years ago.
proposed byte swap patch

Change History

Changed 4 years ago by gillins

proposed byte swap patch

Changed 4 years ago by warmerdam

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

Sam,

Patch applied in trunk and 1.4 branch.

Thanks

Note: See TracTickets for help on using tickets.