Opened 16 years ago

Closed 16 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 16 years ago.
Small test case that exhibits the bug

Download all attachments as: .zip

Change History (3)

by Even Rouault, 16 years ago

Attachment: test_hfa.c added

Small test case that exhibits the bug

comment:1 by Even Rouault, 16 years ago

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

comment:2 by Even Rouault, 16 years ago

Resolution: fixed
Status: newclosed

Test added in r15122

Note: See TracTickets for help on using tickets.