From 3e71f3d95c76b0668760e0111aa0c5eb8f1b7c33 Mon Sep 17 00:00:00 2001 From: vaclav Date: Thu, 19 Mar 2026 17:03:40 +0100 Subject: [PATCH] FIX_1543_MID_LSF_BITS --- lib_com/options.h | 2 ++ lib_enc/acelp_core_enc.c | 3 +++ 2 files changed, 5 insertions(+) diff --git a/lib_com/options.h b/lib_com/options.h index ed3aa3cdb..bbea3aa15 100644 --- a/lib_com/options.h +++ b/lib_com/options.h @@ -168,6 +168,8 @@ /* #################### Start NON-BE switches ############################ */ /* any switch which is non-be wrt. TS 26.258 V3.0 */ +#define FIX_1543_MID_LSF_BITS /* VA: float issue 1543: Resolve "MSAN: use-of-uninitialized-value in lib_enc/lsf_enc.c:262:5 for EVS encoder" */ + /* ##################### End NON-BE switches ########################### */ diff --git a/lib_enc/acelp_core_enc.c b/lib_enc/acelp_core_enc.c index 7c3f48f9f..f4442dc7c 100644 --- a/lib_enc/acelp_core_enc.c +++ b/lib_enc/acelp_core_enc.c @@ -371,6 +371,9 @@ ivas_error acelp_core_enc( nb_bits = 0; st->acelp_cfg.FEC_mode = 0; uc_two_stage_flag = 0; +#ifdef FIX_1543_MID_LSF_BITS + st->acelp_cfg.mid_lsf_bits = -1; +#endif if ( !nelp_mode && !ppp_mode ) { -- GitLab