aboutsummaryrefslogtreecommitdiff
path: root/decoder/ixheaacd_api.c
diff options
context:
space:
mode:
authorTreeHugger Robot <treehugger-gerrit@google.com>2019-01-07 19:32:27 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2019-01-07 19:32:27 +0000
commita0e487a8bd652219e94b2c85a6484d3ecfba9c40 (patch)
tree661e3963ca8845ee339881f9708c7df6df1ae42d /decoder/ixheaacd_api.c
parentb58b82de3887925ec418107a134cfef805905ffb (diff)
parent71c5edac0bd057044561cc2ff023634055e8e565 (diff)
downloadlibxaac-a0e487a8bd652219e94b2c85a6484d3ecfba9c40.tar.gz
Merge "Fix for few uninitialized accesses"
Diffstat (limited to 'decoder/ixheaacd_api.c')
-rw-r--r--decoder/ixheaacd_api.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/decoder/ixheaacd_api.c b/decoder/ixheaacd_api.c
index fc3f7b5..880ce65 100644
--- a/decoder/ixheaacd_api.c
+++ b/decoder/ixheaacd_api.c
@@ -137,6 +137,8 @@ IA_ERRORCODE ixheaacd_dec_mem_api(
return (IA_ENHAACPLUS_DEC_API_FATAL_MEM_ALIGN);
}
p_obj_exhaacplus_dec->pp_mem_aac[i_idx] = pv_value;
+ memset(p_obj_exhaacplus_dec->pp_mem_aac[i_idx], 0,
+ p_obj_exhaacplus_dec->p_mem_info_aac[i_idx].ui_size);
if (i_idx == IA_ENHAACPLUS_DEC_PERSIST_IDX) {
pUWORD8 p_temp = pv_value;