From 1e7023bd1a58edef252237cac09bd35f4eb3ca43 Mon Sep 17 00:00:00 2001 From: Jan Kiene Date: Fri, 12 Dec 2025 12:50:24 +0100 Subject: [PATCH 1/2] initialze st->element_brate per default --- lib_com/options.h | 1 + lib_dec/ivas_sce_dec_fx.c | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/lib_com/options.h b/lib_com/options.h index ee8c6be3a..bd0b7e4a0 100644 --- a/lib_com/options.h +++ b/lib_com/options.h @@ -89,6 +89,7 @@ #define FIX_2252_SCALING_SAVE_HB_SYNTH /* VA: issue 2252: fix use-of-uninit-value in save_hb_synth_fx[] scaling in FOA decoding with bitstream that starts with an SID */ #define FIX_2248_EVS_ASSERT /* VA: Include _sat in an EVS related part of the code */ #define FIX_2254_IMPROV_COMPLEXITY_BE /* VA: BE small complexity reduction */ +#define FIX_1484_CLANG18_MSAN_INIT_ST_ELEM_BRATE /* FhG: initialize st->element_brate per default */ /* #################### End BE switches ################################## */ diff --git a/lib_dec/ivas_sce_dec_fx.c b/lib_dec/ivas_sce_dec_fx.c index a889c505d..a6ba0bae6 100644 --- a/lib_dec/ivas_sce_dec_fx.c +++ b/lib_dec/ivas_sce_dec_fx.c @@ -402,6 +402,10 @@ ivas_error create_sce_dec( st->total_brate = hSCE->element_brate; /* dummy initialization for getting right pointers initialization of input buffers in init_coder_ace_plus() */ move32(); +#ifdef FIX_1484_CLANG18_MSAN_INIT_ST_ELEM_BRATE + st->element_brate = 0; + move32(); +#endif st->mct_chan_mode = MCT_CHAN_MODE_REGULAR; move16(); st->is_ism_format = 0; -- GitLab From 94092280dc713491f0caef81e2da66c6969d906d Mon Sep 17 00:00:00 2001 From: Jan Kiene Date: Mon, 15 Dec 2025 12:00:50 +0100 Subject: [PATCH 2/2] initialize element_brate to explicitly invalid value --- lib_dec/ivas_sce_dec_fx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib_dec/ivas_sce_dec_fx.c b/lib_dec/ivas_sce_dec_fx.c index a6ba0bae6..1b9a530e8 100644 --- a/lib_dec/ivas_sce_dec_fx.c +++ b/lib_dec/ivas_sce_dec_fx.c @@ -403,7 +403,7 @@ ivas_error create_sce_dec( st->total_brate = hSCE->element_brate; /* dummy initialization for getting right pointers initialization of input buffers in init_coder_ace_plus() */ move32(); #ifdef FIX_1484_CLANG18_MSAN_INIT_ST_ELEM_BRATE - st->element_brate = 0; + st->element_brate = -1; move32(); #endif st->mct_chan_mode = MCT_CHAN_MODE_REGULAR; -- GitLab