Skip to content

Decoder crash for MCT-MC 7.1+4 > 192kbps JBM operation

Basic info

Bug description

The fixed point decoder does not terminate after commit 26f383a1.

The change from int to Word16 for loop variables in IVAS_DEC_GetSamples() causes an infinite loop due to overflow of the loop variable.

Ways to reproduce

./IVAS_cod_flt_ref -mc 7_1_4 -max_band FB 192000 48 experiments/basop-verification/MC-7_1_4/proc_input/am3ba1s02.wav out/mc-7_1_4--am3ba1s02--192000.192
networkSimulator_g192 experiments/basop-verification/dly_error_profile_7.dat out/mc-7_1_4--am3ba1s02--192000.192 out/mc-7_1_4--am3ba1s02--192000.netsimout-dly_error_profile_7.192 out/mc-7_1_4--am3ba1s02--192000.netsimtrace 1 0
./IVAS_dec_fx -voip -Tracefile out/mc-7_1_4--am3ba1s02--192000.jbm-dly_error_profile_7.dectrace.fx 7_1_4 48 out/mc-7_1_4--am3ba1s02--192000.netsimout-dly_error_profile_7.192 out/mc-7_1_4--am3ba1s02--192000.jbm-dly_error_profile_7.dec.fx.wav