[CLANG18] MSAN: use-of-uninitialized-value in use-of-uninitialized-value in ivas_destroy_dec_fx
Basic info
- Fixed point:
- Encoder (fixed): n/a
- Decoder (fixed): c0947d4a
Bug description
The MSAN memory sanitizer reports reading of uninitialized memory in case the decoder is not opened successfully:
==4038822==WARNING: MemorySanitizer: use-of-uninitialized-value
#0 0x55742b2d3caa in ivas_destroy_dec_fx /home/ame-tmp2/mul/ivas/basop/issue_2382/ivas-basop/lib_dec/ivas_init_dec_fx.c:3461:5
#1 0x55742af3091f in IVAS_DEC_Close /home/ame-tmp2/mul/ivas/basop/issue_2382/ivas-basop/lib_dec/lib_dec_fx.c:406:9
#2 0x55742aee95c0 in main /home/ame-tmp2/mul/ivas/basop/issue_2382/ivas-basop/apps/decoder.c:733:5
#3 0x7fc001557d79 in __libc_start_main csu/../csu/libc-start.c:308:16
#4 0x55742ae4c479 in _start (/home/ame-tmp2/mul/ivas/basop/issue_2382/ivas-basop/IVAS_dec+0x3b479) (BuildId: 0d1bef7ce978521cb5b4e892842b205497b175e6)
Ways to reproduce
IVAS_dec 48 doesnt_exist.192 out.wav