Merge "Fix for oobw in impd_parse_drc_instructions_uni_drc()" into pi-dev
am: e0c41aae88
Change-Id: I0b6e5a479839d68643c04e00b82e1a9ff213288c
This commit is contained in:
commit
f462745e36
1 changed files with 7 additions and 0 deletions
|
|
@ -2239,6 +2239,9 @@ impd_parse_drc_instructions_uni_drc(
|
|||
str_drc_instruction_str->num_drc_ch_groups = g;
|
||||
}
|
||||
|
||||
if (str_drc_instruction_str->num_drc_ch_groups >
|
||||
min(CHANNEL_GROUP_COUNT_MAX, MAX_CHANNEL_COUNT))
|
||||
return UNEXPECTED_ERROR;
|
||||
for (g = 0; g < str_drc_instruction_str->num_drc_ch_groups; g++) {
|
||||
WORD32 set =
|
||||
(str_drc_instruction_str->drc_set_effect & EFFECT_BIT_DUCK_OTHER)
|
||||
|
|
@ -2344,6 +2347,10 @@ impd_parse_drc_instructions_uni_drc(
|
|||
}
|
||||
|
||||
str_drc_instruction_str->num_drc_ch_groups = g;
|
||||
|
||||
if (str_drc_instruction_str->num_drc_ch_groups >
|
||||
min(CHANNEL_GROUP_COUNT_MAX, MAX_CHANNEL_COUNT))
|
||||
return UNEXPECTED_ERROR;
|
||||
for (g = 0; g < str_drc_instruction_str->num_drc_ch_groups; g++) {
|
||||
WORD32 set, band_count;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue