Opened 17 years ago

Closed 17 years ago

#1841 closed defect (fixed)

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

Reported by: Sam Gillingham 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 (1)

hfaopen.cpp.patch (321 bytes ) - added by Sam Gillingham 17 years ago.
proposed byte swap patch

Download all attachments as: .zip

Change History (2)

by Sam Gillingham, 17 years ago

Attachment: hfaopen.cpp.patch added

proposed byte swap patch

comment:1 by warmerdam, 17 years ago

Component: defaultGDAL_Raster
Keywords: HFA added
Resolution: fixed
Status: newclosed

Sam,

Patch applied in trunk and 1.4 branch.

Thanks

Note: See TracTickets for help on using tickets.