Skip to content

USAN: value out of range for int16 in FEC_HQ_phase_ecu.c

Basic info

Bug description

Clang usan sanitizer test in pipeline found an error:

lib_dec/FEC_HQ_phase_ecu.c:1139:29: runtime error: 62799.6 is outside the range of representable values of type 'short'

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

Ways to reproduce

Using the scripts:

dly_profile.dat

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