Skip to content

Commit

Permalink
Fix for the Use-of-uninitialized-value in ixheaace_frame_info_generat…
Browse files Browse the repository at this point in the history
…or (#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
  • Loading branch information
akshayragir833 authored Jan 2, 2024
1 parent 59ab6ad commit 87f206b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion encoder/ixheaace_sbr_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down Expand Up @@ -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(
Expand Down

0 comments on commit 87f206b

Please sign in to comment.