[CLANG18] MSAN: use-of-uninitialized-value in lib_com/tools_fx.c:1354:16
Basic Info
- Commit SHA: 6ff99c98
Bug description
Clang 18 MSAN found an use-of-uninitialized-value error at lib_com/tools_fx.c:1354:16:
==19991==WARNING: MemorySanitizer: use-of-uninitialized-value
#0 0x55cef964d400 in Copy_Scale_sig_16_32_DEPREC /builds/rep/sa4/audio/ivas-basop/lib_com/tools_fx.c:1354:16
#1 0x55cef8ae50aa in ivas_corecoder_enc_reconfig_fx /builds/rep/sa4/audio/ivas-basop/lib_enc/ivas_corecoder_enc_reconfig_fx.c:300:17
#2 0x55cef813407d in ivas_ism_enc_config /builds/rep/sa4/audio/ivas-basop/lib_enc/ivas_ism_enc_fx.c:587:9
#3 0x55cef810277c in ivas_enc_fx /builds/rep/sa4/audio/ivas-basop/lib_enc/ivas_enc_fx.c:188:9
#4 0x55cef7fb6675 in IVAS_ENC_EncodeFrameToSerial /builds/rep/sa4/audio/ivas-basop/lib_enc/lib_enc_fx.c:1502:13
#5 0x55cef7f9594a in main /builds/rep/sa4/audio/ivas-basop/apps/encoder.c:877:28
#6 0x7fd2ddee81c9 in __libc_start_call_main csu/../sysdeps/nptl/libc_start_call_main.h:58:16
#7 0x7fd2ddee828a in __libc_start_main csu/../csu/libc-start.c:360:3
#8 0x55cef7ef5454 in _start (/builds/rep/sa4/audio/ivas-basop/IVAS_cod+0x38454) (BuildId: 8fd000be54ac410bba001621c9b72a8d8aed4cf6)
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
Build with
make clean
make -j CLANG=1
Then run
IVAS_cod -dtx -ism +4 scripts/testv/stvISM1.csv NULL scripts/testv/stvISM3.csv scripts/testv/stvISM4.csv scripts/switchPaths/sw_24k4_256k.bin 48 scripts/testv/stv4ISM48n.wav stv4ISM48n.wav_4_ISM_with_and_without_extended_metadata_bitrate_switching_from_24_4_kbps_to_256_kbps_48_kHz_in_48_kHz_out_DTX_on_EXT_out.192
or
python3 -m pytest "test_param_file_tests[stv-4 ISM with and without extended metadata bitrate switching from 24.4 kbps to 256 kbps, 48 kHz in, 48 kHz out, DTX on, EXT out]" -n auto --update_ref --ref_encoder_path ./IVAS_cod --ref_decoder_path ./IVAS_dec