[valgrind] SBA: Reading of uninitialized memory for 384 kbit/s HOA3
Basic info
- Commit SHA: 5e0a9b77
- Platform: Linux, Windows
Bug description
Valgrind reports reading of uninitialized memory in the TCX arithmetic coder (RCcontextMapping_encode2_no_mem_s17_LCS()). Occurs in frame #965.
Output:
==1892421== Use of uninitialised value of size 8
==1892421== at 0x1C5D9E: RCcontextMapping_encode2_no_mem_s17_LCS (ACcontextMapping_enc.c:892)
==1892421== by 0x1EDF5E: writeTCXparam (enc_prm.c:563)
==1892421== by 0x1553D8: ivas_mdct_quant_coder (ivas_mdct_core_enc.c:1304)
==1892421== by 0x14EDB3: ivas_mct_enc (ivas_mct_enc.c:142)
==1892421== by 0x135C67: ivas_enc (ivas_enc.c:266)
==1892421== by 0x11702C: IVAS_ENC_EncodeFrameToSerial (lib_enc.c:1127)
==1892421== by 0x10E95A: main (encoder.c:724)
==1892421==
while ( x[lastnz - 1] == 0 && x[lastnz - 2] == 0 )
{
lastnz -= 2;
}
for lastnz == 960
, cpe_id == 0
, ch == 0
.
Ways to reproduce
Commandline: ./IVAS_cod -sba +3 -max_band FB 384000 48 14_multi_source_dry_22p2_48k-hoa_HOA3_norm.wav out.bit
Edited by multrus