[CLANG18] MSAN: use-of-uninitialized-value in lib_enc/ivas_core_pre_proc_fx.c:1161:9
Basic Info
- Commit SHA: f4896dcb
Bug description
Clang 18 MSAN found an use-of-uninitialized-value error at lib_com/tools_fx.c:1546:20:
==37697==WARNING: MemorySanitizer: use-of-uninitialized-value
#0 0x55a59d4aba3e in Scale_sig /ivas-basop/lib_com/tools_fx.c:1546:20
#1 0x55a59c94dc3c in ivas_compute_core_buffers_fx /ivas-basop/lib_enc/ivas_core_pre_proc_fx.c:1161:9
#2 0x55a59c94323d in pre_proc_ivas_fx /ivas-basop/lib_enc/ivas_core_pre_proc_fx.c:618:9
#3 0x55a59c8ff402 in ivas_core_enc_fx /ivas-basop/lib_enc/ivas_core_enc_fx.c:238:9
#4 0x55a59c986d4b in ivas_cpe_enc_fx /ivas-basop/lib_enc/ivas_cpe_enc_fx.c:1273:5
#5 0x55a59bfb33cf in ivas_enc_fx /ivas-basop/lib_enc/ivas_enc_fx.c:435:9
#6 0x55a59bea9675 in IVAS_ENC_EncodeFrameToSerial /ivas-basop/lib_enc/lib_enc_fx.c:1502:13
#7 0x55a59be8894a in main /ivas-basop/apps/encoder.c:877:28
#8 0x7fa88365c1c9 in __libc_start_call_main csu/../sysdeps/nptl/libc_start_call_main.h:58:16
#9 0x7fa88365c28a in __libc_start_main csu/../csu/libc-start.c:360:3
#10 0x55a59bde8454 in _start (/ivas-basop/IVAS_cod+0x38454) (BuildId: 789f3dc0ffff33f27110c73bbbf592b3990dac4e)
SUMMARY: MemorySanitizer: use-of-uninitialized-value /ivas-basop/lib_com/tools_fx.c:1546:20 in Scale_sig
How to reproduce
Build with
make clean
make -j CLANG=1
Then run
IVAS_cod -ism_masa 4 2 scripts/testv/stv20sOMASA_4ISM2TC_ISM1.csv scripts/testv/stv20sOMASA_4ISM2TC_ISM2.csv scripts/testv/stv20sOMASA_4ISM2TC_ISM3.csv scripts/testv/stv20sOMASA_4ISM2TC_ISM4.csv scripts/testv/stv20sOMASA_4ISM2TC.met scripts/switchPaths/sw_13k2_512k_2fr_start_384k_omasatechs_4ism.bin 48 scripts/testv/stv20sOMASA_4ISM2TC.wav stv20sOMASA_4ISM2TC.wav_OMASA_vdir2TC_4ISM_at_br_sw_techs_13_2_to_512_kbps_start_384_kbps_48kHz_in_16kHz_out_BINAURAL_out_Model_from_file_.192
or
python3 -m pytest "test_param_file_tests[stv-OMASA vdir2TC 4ISM at br sw techs 13.2 to 512 kbps start 384 kbps, 48kHz in, 16kHz out, BINAURAL out (Model from file)]" -n auto --update_ref --ref_encoder_path ./IVAS_cod --ref_decoder_path ./IVAS_dec
Edited by Jan Kiene