Opened 18 years ago

Last modified 18 years ago

#938 closed defect (fixed)

HFA Compression code does not malloc enough space

Reported by: sam.gillingham@… Owned by: warmerdam
Priority: high Milestone:
Component: GDAL_Raster Version: unspecified
Severity: major Keywords:


Both m_pCounts and m_pValues areas should be allocated at least the size 
of a GUInt32 larger that they currently are to allow for the addition 
of an extra compressed value before the loop exits. Otherwise code overwrites
beyond the allocated space.

Attachments (1)

hfacompress.cpp.patch (759 bytes ) - added by sam.gillingham@… 18 years ago.
Patch to allocate mroe space

Download all attachments as: .zip

Change History (2)

by sam.gillingham@…, 18 years ago

Attachment: hfacompress.cpp.patch added

Patch to allocate mroe space

comment:1 by warmerdam, 18 years ago

Patch applied. 

Note: See TracTickets for help on using tickets.