USAN: applying non-zero offset to null pointer in OSBA decoding to BINAURAL
Basic info
- Commit SHA: 3a0ecd3b
Bug description
Clang usan sanitizer test in pipeline found an error:
lib_dec/ivas_sba_dec.c:832:32: runtime error: applying non-zero offset 640 to null pointer
SUMMARY: UndefinedBehaviorSanitizer: nullptr-with-nonzero-offset lib_dec/ivas_sba_dec.c:832:32 in
Link to test pipeline: https://forge.3gpp.org/rep/ivas-codec-pc/ivas-codec/-/jobs/224449
Ways to reproduce
Using the scripts:
python3 scripts/IvasBuildAndRunChecks.py --checks CLANG3 -m OSBA_ISM1_PlanarFOA_ball_swb_rs -p /path/to/my/local/ci_linux_ltv_local.json --usan_supp_file scripts/ubsan.supp
or directly:
make clean
make -j CLANG=3
./IVAS_cod -ism_sba 1 -1 NULL -max_band fb scripts/switchPaths/sw_13k2_512k.bin 32 ltv32_OSBA_1ISM_FOA.wav bit
networkSimulator_g192 dly_profile.dat bit bit_err trace_dump 1
./IVAS_dec -VOIP BINAURAL 32 bit_err out.wav
Edited by Jan Kiene