Merge "Fix for heap buffer overflow in xaac decoder init" into pi-dev
This commit is contained in:
commit
1ef552efbb
2 changed files with 4 additions and 2 deletions
|
|
@ -606,7 +606,7 @@ WORD32 ixheaacd_ga_hdr_dec(ia_aac_dec_state_struct *aac_state_struct,
|
|||
err = ixheaacd_config(it_bit_buff,
|
||||
&(pstr_audio_specific_config->str_usac_config),
|
||||
&(pstr_audio_specific_config->channel_configuration));
|
||||
if (err != 0) return -1;
|
||||
if (err != 0) return err;
|
||||
|
||||
if (pstr_audio_specific_config->audio_object_type == AOT_USAC) {
|
||||
pstr_audio_specific_config->sbr_present_flag = 1;
|
||||
|
|
|
|||
|
|
@ -63,6 +63,8 @@
|
|||
#include "ixheaacd_struct.h"
|
||||
#include "ixheaacd_constants.h"
|
||||
|
||||
#include "ixheaacd_error_codes.h"
|
||||
|
||||
UWORD32 ixheaacd_sbr_ratio(UWORD32 core_sbr_framelength_idx) {
|
||||
UWORD32 sbr_ratio_index = 0x0FF;
|
||||
|
||||
|
|
@ -517,7 +519,7 @@ WORD32 ixheaacd_config(ia_bit_buf_struct *it_bit_buff,
|
|||
(UWORD32 *)(&(pstr_usac_conf->num_out_channels)),
|
||||
5, 8, 16);
|
||||
if (BS_MAX_NUM_OUT_CHANNELS < pstr_usac_conf->num_out_channels) {
|
||||
return -1;
|
||||
return IA_ENHAACPLUS_DEC_INIT_FATAL_STREAM_CHAN_GT_MAX;
|
||||
}
|
||||
for (i = 0; i < pstr_usac_conf->num_out_channels; i++)
|
||||
pstr_usac_conf->output_channel_pos[i] =
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue