Skip to content

USAN: index out of bounds in MC bitrate switching for decoding to STEREO

Basic info

Bug description

Clang usan sanitizer test in pipeline found an error:

lib_dec/ivas_jbm_dec.c:2588:28: runtime error: index 8 out of bounds for type 'int16_t [8]'
SUMMARY: UndefinedBehaviorSanitizer: out-of-bounds-index lib_dec/ivas_jbm_dec.c:2588:28 in 

Link to test pipeline: https://forge.3gpp.org/rep/ivas-codec-pc/ivas-codec/-/jobs/218857

Ways to reproduce

Using the scripts:

dly_profile.dat

python3 scripts/IvasBuildAndRunChecks.py --checks CLANG3 -m MC_5_1_ball_fb_rs -p /path/to/my/local/ci_linux_ltv_local.json --usan_supp_file scripts/ubsan.supp -J dly_profile.dat

or directly:

make clean
make -j CLANG=3
./IVAS_cod -mc 5_1 -max_band fb scripts/switchPaths/sw_13k2_512k.bin 48 ltv48_MC51.wav bit
networkSimulator_g192 dly_profile.dat bit bit_jbm_fer
./IVAS_dec -VOIP stereo 48 bit_jbm_fer out.wav