[CLANG18] MSAN: use-of-uninitialized-value in lib_dec/ivas_mct_dec_fx.c:225:13
### Basic Info - Commit SHA: 5bfd9e0b10f45aa8a90f1b3b022c0433ed18c1c3 ### Bug description Clang 18 MSAN found an use-of-uninitialized-value error at lib_com/tools_fx.c:1354:16: ``` ==20268==WARNING: MemorySanitizer: use-of-uninitialized-value #0 0x562440887ff0 in Copy_Scale_sig_16_32_DEPREC /builds/rep/sa4/audio/ivas-basop/lib_com/tools_fx.c:1354:16 #1 0x56243f4706ee in ivas_mct_dec_fx /builds/rep/sa4/audio/ivas-basop/lib_dec/ivas_mct_dec_fx.c:225:13 #2 0x56243f363732 in ivas_dec_fx /builds/rep/sa4/audio/ivas-basop/lib_dec/ivas_jbm_dec_fx.c:265:13 #3 0x56243ef6bb37 in IVAS_DEC_GetSamplesDecoder /builds/rep/sa4/audio/ivas-basop/lib_dec/lib_dec_fx.c:3896:13 #4 0x56243ef10b4d in decodeG192 /builds/rep/sa4/audio/ivas-basop/apps/decoder.c:2292:32 #5 0x56243eef4c82 in main /builds/rep/sa4/audio/ivas-basop/apps/decoder.c:684:17 #6 0x7fd03faf31c9 in __libc_start_call_main csu/../sysdeps/nptl/libc_start_call_main.h:58:16 #7 0x7fd03faf328a in __libc_start_main csu/../csu/libc-start.c:360:3 #8 0x56243ee56484 in _start (/builds/rep/sa4/audio/ivas-basop/IVAS_dec+0x3b484) (BuildId: dc6ade48efbaef05ff2ecb1f03e3fcc0d0df194c) SUMMARY: MemorySanitizer: use-of-uninitialized-value /builds/rep/sa4/audio/ivas-basop/lib_com/tools_fx.c:1354:16 in Copy_Scale_sig_16_32_DEPREC ``` ### How to reproduce :warning: Make sure to use CLANG v18 for building the codec :warning Build with ``` make clean make -j CLANG=1 ``` Then run ``` IVAS_cod -sba 2 128000 32 scripts/testv/stv2OA32c.wav stv2OA32c.wav_SBA_at_128_kbps_32kHZ_in_16kHz_out_BINAURAL_ROOM_REVERB_out_Model_from_file_HR.192 IVAS_dec -fr 20 -hrtf scripts/binauralRenderer_interface/binaural_renderers_hrtf_data/ivas_binaural_16kHz.bin -t scripts/testv/headrot_case00_3000_q.csv BINAURAL_ROOM_REVERB 16 stv2OA32c.wav_SBA_at_128_kbps_32kHZ_in_16kHz_out_BINAURAL_ROOM_REVERB_out_Model_from_file_HR.192 stv2OA32c.wav_SBA_at_128_kbps_32kHZ_in_16kHz_out_BINAURAL_ROOM_REVERB_out_Model_from_file_HR.dec.wav ``` or ``` python3 -m pytest "test_param_file_tests[stv-SBA at 128 kbps, 32kHZ in, 16kHz out, BINAURAL_ROOM_REVERB out (Model from file), HR]" -n auto --update_ref --ref_encoder_path ./IVAS_cod --ref_decoder_path ./IVAS_dec ```
issue