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:
akshayragir833 2024-01-02 19:07:05 +05:30 • committed by GitHub
parent 59ab6ada33
commit 87f206b42d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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(