Fix for the Use-of-uninitialized-value in ixheaace_frame_info_generator (#75)
These changes handle the runtime error reported by preventing the inappropriate access of uninitialized member from a structure. Bug: ossFuzz: 65422 Test: poc in bug
This commit is contained in:
parent
59ab6ada33
commit
87f206b42d
1 changed files with 2 additions and 1 deletions
|
|
@ -503,7 +503,7 @@ VOID ixheaace_adjust_sbr_settings(const ixheaace_pstr_sbr_cfg pstr_config, UWORD
|
|||
break;
|
||||
}
|
||||
}
|
||||
pstr_config->use_low_freq_res = 0;
|
||||
|
||||
if (pstr_config->sbr_codec == ELD_SBR) {
|
||||
pstr_config->send_header_data_time = -1;
|
||||
if ((num_ch == NUM_CHANS_MONO) && (bit_rate <= 22000)) {
|
||||
|
|
@ -581,6 +581,7 @@ VOID ixheaace_initialize_sbr_defaults(ixheaace_pstr_sbr_cfg pstr_config) {
|
|||
pstr_config->sbr_pvc_active = 0;
|
||||
pstr_config->sbr_harmonic = 0;
|
||||
pstr_config->sbr_ratio_idx = 0; // NO_SBR
|
||||
pstr_config->use_low_freq_res = 0;
|
||||
}
|
||||
|
||||
static IA_ERRORCODE ia_enhaacplus_enc_update_freq_band_tab(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue