From 59e6c45e136eec694e86ba4ba7d29a0fd50b4ed9 Mon Sep 17 00:00:00 2001 From: Tapani Pihlajakuja Date: Mon, 9 Feb 2026 10:22:50 +0530 Subject: [PATCH] Fix float issue 1522 by adding init. --- lib_com/options.h | 1 + lib_enc/ivas_qmetadata_enc_fx.c | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/lib_com/options.h b/lib_com/options.h index 61a3c10cc..04bd4c422 100644 --- a/lib_com/options.h +++ b/lib_com/options.h @@ -94,6 +94,7 @@ #define FIX_2404_HARM_SIGNAL_CLAS /* VA: basop-2404, harmonize signal_clas and signa_ivas_clas */ #define HARMONIZE_ACELP_ENC /* VA: basop issue 2400: Remove duplicated main ACELP encoder function */ #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_fx.c b/lib_enc/ivas_qmetadata_enc_fx.c index 7bc4560cf..48d0aebc2 100644 --- a/lib_enc/ivas_qmetadata_enc_fx.c +++ b/lib_enc/ivas_qmetadata_enc_fx.c @@ -2096,6 +2096,12 @@ static Word16 GR_bits_azimuth_context_fx( Word16 no_symb_local[MAX_PARAM_SPATIAL_SUBFRAMES]; Word16 no_data = 0; move16(); +#ifdef FIX_FLOAT_1522_LTV_MSAN_QMETADATA_ENC_EC3 + + *real_GR_ord = GR_order; /* Init to avoid sanitizer warnings */ + move16(); + +#endif FOR( i = 0; i < no_data_in; i++ ) { IF( LT_32( data_in[i], MASA_NO_INDEX ) ) -- GitLab