From 78589de605bfc7034b327b9fcee07ae28c2b17d3 Mon Sep 17 00:00:00 2001 From: Tapani Pihlajakuja Date: Mon, 9 Feb 2026 10:20:03 +0530 Subject: [PATCH] Fix float issue 1522 by adding init. --- lib_com/options.h | 1 + lib_enc/ivas_qmetadata_enc.c | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/lib_com/options.h b/lib_com/options.h index ad53cf3406..af074f904e 100644 --- a/lib_com/options.h +++ b/lib_com/options.h @@ -163,6 +163,7 @@ #define TMP_1342_WORKAROUND_DEC_FLUSH_BROKEN_IN_SR /* FhG: Temporary workaround for incorrect implementation of decoder flush with split rendering */ #define NONBE_1122_KEEP_EVS_MODE_UNCHANGED /* FhG: Disables fix for issue 1122 in EVS mode to keep BE tests green. This switch should be removed once the 1122 fix is added to EVS via a CR. */ #define FIX_2392_MSAN_DESTROY_DEC /* VA: basop issue 2392: fix MSAN in ivas_destroy_dec_fx() */ +#define FIX_FLOAT_1522_LTV_MSAN_QMETADATA_ENC_EC3 /* Nokia: float issue 1522: fix uninit MSAN in EC3 of qmetadata encoding */ /* #################### End BE switches ################################## */ diff --git a/lib_enc/ivas_qmetadata_enc.c b/lib_enc/ivas_qmetadata_enc.c index dadc9dd7a3..7cb3532a1b 100644 --- a/lib_enc/ivas_qmetadata_enc.c +++ b/lib_enc/ivas_qmetadata_enc.c @@ -2105,6 +2105,10 @@ static int16_t GR_bits_azimuth_context( int16_t real_GR_ord1; int16_t no_symb_local[MAX_PARAM_SPATIAL_SUBFRAMES]; int16_t no_data = 0; +#ifdef FIX_FLOAT_1522_LTV_MSAN_QMETADATA_ENC_EC3 + + *real_GR_ord = GR_order; /* Init to avoid sanitizer warnings */ +#endif for ( i = 0; i < no_data_in; i++ ) { -- GitLab