mirror of
https://github.com/RPCS3/soundtouch.git
synced 2026-07-01 20:24:04 -04:00
Fix buffer overflow when processing >16 channels
Signed-off-by: Olli <oparviai@iki.fi>
This commit is contained in:
@@ -220,7 +220,7 @@ void WavInFile::init()
|
||||
}
|
||||
|
||||
// sanity check for format parameters
|
||||
if ((header.format.channel_number < 1) || (header.format.channel_number > 9) ||
|
||||
if ((header.format.channel_number < 1) || (header.format.channel_number > 32) ||
|
||||
(header.format.sample_rate < 4000) || (header.format.sample_rate > 192000) ||
|
||||
(header.format.byte_per_sample < 1) || (header.format.byte_per_sample > 320) ||
|
||||
(header.format.bits_per_sample < 8) || (header.format.bits_per_sample > 32))
|
||||
|
||||
@@ -165,7 +165,7 @@ uint FIRFilter::evaluateFilterMulti(SAMPLETYPE *dest, const SAMPLETYPE *src, uin
|
||||
for (j = 0; j < end; j += numChannels)
|
||||
{
|
||||
const SAMPLETYPE *ptr;
|
||||
LONG_SAMPLETYPE sums[16];
|
||||
LONG_SAMPLETYPE sums[SOUNDTOUCH_MAX_CHANNELS];
|
||||
uint c;
|
||||
int i;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user