From cdcde447ee97480943c434d7bd798cb70b7bc51b Mon Sep 17 00:00:00 2001 From: Erik Norvell Date: Thu, 18 Dec 2025 13:48:30 +0100 Subject: [PATCH 1/2] Add fix FIX_1483_PEAQ_VQ_ENC_MSAN_ERROR to address MSAN error --- lib_com/hvq_pvq_bitalloc.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib_com/hvq_pvq_bitalloc.c b/lib_com/hvq_pvq_bitalloc.c index 2c9429a32d..5f98538a84 100644 --- a/lib_com/hvq_pvq_bitalloc.c +++ b/lib_com/hvq_pvq_bitalloc.c @@ -80,6 +80,10 @@ int16_t hvq_pvq_bitalloc( int16_t num_sfm; int16_t bit_cost; +#ifdef FIX_1483_PEAQ_VQ_ENC_MSAN_ERROR + *n_sel_bands = 0; +#endif + if ( bwidth == FB ) { num_sfm = SFM_N_HARM_FB; @@ -134,7 +138,9 @@ int16_t hvq_pvq_bitalloc( return 0; } +#ifndef FIX_1483_PEAQ_VQ_ENC_MSAN_ERROR *n_sel_bands = 0; +#endif env_mean = 0; E_max = 0; k_max = k_start; -- GitLab From 84a5657cacdab442d903bdcf6a8f3b1b9210a334 Mon Sep 17 00:00:00 2001 From: Erik Norvell Date: Thu, 18 Dec 2025 13:56:07 +0100 Subject: [PATCH 2/2] Add missing commit of options.h --- lib_com/options.h | 1 + 1 file changed, 1 insertion(+) diff --git a/lib_com/options.h b/lib_com/options.h index fc3d5173a8..d0855fe972 100644 --- a/lib_com/options.h +++ b/lib_com/options.h @@ -172,6 +172,7 @@ #define FIX_2287_MCT_MDCT_STEREO_DATA_MALLOC_SIZE /* FhG: correct allocation size for STEREO_MDCT_DEC_DATA struct */ #define FIX_2271_OOB_INDEXING_IN_PIT_OL2 /* VA: Fix for issue 2271, to silence clang18 */ #define FIX_2273_OOB_INDEXING_IN_PIT_FR4 /* VA: Fix to silence clang on ptr init */ +#define FIX_1483_PEAQ_VQ_ENC_MSAN_ERROR /* Eri: When no PVQ bands are selected in peaq_vq_enc, the number of bands is not initialized. */ /* #################### End BE switches ################################## */ -- GitLab