diff options
author | Rajat Kumar <rajat.kumar@ittiam.com> | 2018-12-27 09:21:28 +0530 |
---|---|---|
committer | Ray Essick <essick@google.com> | 2019-01-02 11:02:39 -0800 |
commit | 1453c9d50ac195b816bb2b57b9b21cd9e0c2782b (patch) | |
tree | 0c6f937ec2bb9107d71ff88d18b39dd3200aac8a /decoder/ixheaacd_api.c | |
parent | 00e3408f15c4f789f51b5d1685bc2234c7327c59 (diff) | |
download | libxaac-1453c9d50ac195b816bb2b57b9b21cd9e0c2782b.tar.gz |
Fix for integer overflow in xaacdec test bench
p_obj_exhaacplus_dec->aac_config.ui_n_channels and
p_obj_exhaacplus_dec->aac_config.i_channel_mask initialized
to default values in pre config to avoid propagation of
uninitialized values in erroneous cases.
Bug:119798143
Test: poc
Change-Id: I757359818b0dbbf98c94551e4e54ed7e4d7c206a
Diffstat (limited to 'decoder/ixheaacd_api.c')
-rw-r--r-- | decoder/ixheaacd_api.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/decoder/ixheaacd_api.c b/decoder/ixheaacd_api.c index a68167f..fe5a02c 100644 --- a/decoder/ixheaacd_api.c +++ b/decoder/ixheaacd_api.c @@ -412,6 +412,8 @@ IA_ERRORCODE ixheaacd_dec_api(pVOID p_ia_enhaacplus_dec_obj, WORD32 i_cmd, p_obj_exhaacplus_dec->aac_config.ui_coupling_channel = 0; p_obj_exhaacplus_dec->aac_config.downmix = 0; + p_obj_exhaacplus_dec->aac_config.ui_n_channels = 2; + p_obj_exhaacplus_dec->aac_config.i_channel_mask = 3; { ia_aac_dec_tables_struct *pstr_aac_tables = |