Use-of-uninitialized value in Planar SBA bitrate switching for mono and stereo output
Basic info
- Commit SHA: 649241d1 (latest main)
Bug description
Clang msan sanitizer test in pipeline found an error:
==216112==WARNING: MemorySanitizer: use-of-uninitialized-value
#0 0x1027253 in hp20 /local/knj/ivas-codec/lib_com/hp50.c:127:14
#1 0x628b80 in ivas_dec /local/knj/ivas-codec/lib_dec/ivas_dec.c:374:13
#2 0x4c3cfe in IVAS_DEC_GetSamples /local/knj/ivas-codec/lib_dec/lib_dec.c:733:24
#3 0x4b6285 in decodeG192 /local/knj/ivas-codec/apps/decoder.c:1793:24
#4 0x49d048 in main /local/knj/ivas-codec/apps/decoder.c:652:17
#5 0x7fed4868ad09 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x23d09)
#6 0x41f5a9 in _start (/local/knj/ivas-codec/CLANG1/IVAS_dec+0x41f5a9)
SUMMARY: MemorySanitizer: use-of-uninitialized-value /local/knj/ivas-codec/lib_com/hp50.c:127:14 in hp20
Looks similar to #586 (closed). There, @tyagiri, @vpvid and @reutelhuber were involved, maybe this is a similar issue or got reintroduced by accident?
Link to test pipeline: https://forge.3gpp.org/rep/ivas-codec-pc/ivas-codec/-/jobs/111973
Ways to reproduce
Using the scripts:
python3 scripts/IvasBuildAndRunChecks.py --checks CLANG1 -m PlanarSBA_ball_fb_rs --oc mono stereo -p /path/to/my/local/ci_linux_ltv_local.json -f ep_015.g192
or directly:
make clean
make -j CLANG=1
./IVAS_cod -sba -3 -max_band fb scripts/switchPaths/sw_13k2_512k.bin 48 ivas-pc-testfiles/ltv48_HOA3.wav bit
eid-xor -vbr -fer bit ep_015.g192 bit_fer
./IVAS_dec STEREO 48 bit out.wav