Skip to content

USAN: signed integer overflow in ari_hm.c

Basic info

Bug description

Clang usan sanitizer test in pipeline found an error:

lib_com/ari_hm.c:302:17: runtime error: signed integer overflow: 80818 * -26572 cannot be represented in type 'int'
SUMMARY: UndefinedBehaviorSanitizer: signed-integer-overflow lib_com/ari_hm.c:302:17 in 

This is probably again about #966 (closed) :(

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

Ways to reproduce

Using the scripts:

python3 scripts/IvasBuildAndRunChecks.py --checks CLANG3 -m stereo_b13_2_wb_cbr -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 -stereo -max_band wb 13200 16 ltv16_STEREO.wav bit