Opened 11 years ago

Closed 11 years ago

#2525 closed defect (fixed)

HFA compression may overflow a working buffer

Reported by: Even Rouault Owned by: Even Rouault
Priority: normal Milestone: 1.5.3
Component: GDAL_Raster Version: unspecified
Severity: normal Keywords: hfa compress
Cc: warmerdam

Description

The m_pCounts and m_pValues buffers are not big enough when compressing random data, or specially crafted patterns.

The attached program crashes for example.

Attachments (1)

test_hfa.c (1.1 KB) - added by Even Rouault 11 years ago.
Small test case that exhibits the bug

Download all attachments as: .zip

Change History (3)

Changed 11 years ago by Even Rouault

Attachment: test_hfa.c added

Small test case that exhibits the bug

comment:1 Changed 11 years ago by Even Rouault

Fixed in trunk in r15120 and in branches/1.5 in r15121

comment:2 Changed 11 years ago by Even Rouault

Resolution: fixed
Status: newclosed

Test added in r15122

Note: See TracTickets for help on using tickets.