From 7513c8b52a3a7c326a3687e13a40ea7200566529 Mon Sep 17 00:00:00 2001 From: Ramesh Katuri Date: Tue, 27 Nov 2018 10:03:37 +0530 Subject: [PATCH] Fix for Use of uninitialized value in ixheaacd_mps_mapindexdata valgrind has reported usage of un-initialized variable,interpolate_local in,ixheaacd_mps_mapindexdata(). As a fix interpolate_local variable is initialized to zero Bug:118492282 Test: vendor Change-Id: I741fa634a4f0481b59acbbb88b4cd7a44200bed6 --- decoder/ixheaacd_mps_parse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/decoder/ixheaacd_mps_parse.c b/decoder/ixheaacd_mps_parse.c index b5943d5..5439465 100644 --- a/decoder/ixheaacd_mps_parse.c +++ b/decoder/ixheaacd_mps_parse.c @@ -682,7 +682,7 @@ static WORD32 ixheaacd_mps_mapindexdata( int out_idx_data[MAX_PARAMETER_SETS_MPS][MAX_PARAMETER_BANDS], int cmp_idx_data[MAX_PARAMETER_SETS_MPS][MAX_PARAMETER_BANDS], int idx_prev[MAX_PARAMETER_BANDS], int param_type) { - int interpolate_local[MAX_PARAMETER_SETS_MPS]; + int interpolate_local[MAX_PARAMETER_SETS_MPS] = {0}; int map[MAX_PARAMETER_BANDS + 1]; int set_index, i, band, parm_slot;