Fix some out of bound array access. (#862)

This commit is contained in:
Chris Purnell 2023-06-16 19:15:43 +01:00 committed by GitHub
parent f6a1cc598e
commit f0ef8f3cc2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 19 deletions

View file

@ -247,7 +247,7 @@ namespace snd
channel->drc_control[index].fader = 0;
channel->drc_control[index].lfe = -960;
for (size_t i = 0; i < AX_MAX_NUM_BUS; ++i)
for (size_t i = 0; i < AX_AUX_BUS_COUNT; ++i)
{
channel->drc_control[index].aux[i] = -960;
}
@ -272,7 +272,7 @@ namespace snd
channel->rmt_control[index].fader = 0;
channel->rmt_control[index].lfe = -960;
for (size_t i = 0; i < AX_MAX_NUM_BUS; ++i)
for (size_t i = 0; i < AX_AUX_BUS_COUNT; ++i)
{
channel->rmt_control[index].aux[i] = -960;
}