diff options
author | ShashankPathmudi <146080254+ShashankPathmudi@users.noreply.github.com> | 2024-05-10 17:43:17 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-10 14:13:17 +0200 |
commit | f17df346515b33b389517236b282b1de12627b65 (patch) | |
tree | a192995c649b96a7ac072ea6cbaf3c2f1d09ae4f | |
parent | ae307e45c6a4d816710ed9af383ef594409777e8 (diff) | |
download | libxaac-upstream-main.tar.gz |
Fix for Use-of-uninitialized-value in ixheaacd_aacdec_decodeframe (#87)upstream-main
These changes fix the Use-of-uninitialized-value in ixheaacd_aacdec_decodeframe runtime error
caused due to uninitialized structure members of aac scratch structure.
Bug: ossFuzz:68464
Test: poc in bug
-rw-r--r-- | decoder/ixheaacd_api.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/decoder/ixheaacd_api.c b/decoder/ixheaacd_api.c index 739d1e3..0be484f 100644 --- a/decoder/ixheaacd_api.c +++ b/decoder/ixheaacd_api.c @@ -2023,6 +2023,7 @@ IA_ERRORCODE ixheaacd_dec_init( while ((type != 7)) { ia_aac_dec_scratch_struct aac_scratch_struct; + memset(&aac_scratch_struct, 0, sizeof(aac_scratch_struct)); if (ch_idx >= elements_number) { p_state_enhaacplus_dec->i_bytes_consumed = 1; |