Opened 14 years ago

Last modified 14 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:
Cc:

Description

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@… 14 years ago.
Patch to allocate mroe space

Download all attachments as: .zip

Change History (2)

Changed 14 years ago by sam.gillingham@…

Attachment: hfacompress.cpp.patch added

Patch to allocate mroe space

comment:1 Changed 14 years ago by warmerdam

Patch applied. 

Thanks!
Note: See TracTickets for help on using tickets.