Decoder crashing with rateswitch and OMASA EXT
Basic info
- Float reference:
- Fixed point:
Bug description
Decoder crashes with rateswitch and OMASA EXT in frame 2 with the stack
set_zero_fx tools_fx.c:4292
ivas_jbm_dec_tc_fx ivas_jbm_dec_fx.c:679
IVAS_DEC_GetTcSamples lib_dec_fx.c:1833
IVAS_DEC_GetSamples lib_dec_fx.c:1208
decodeG192 decoder.c:1998
main decoder.c:687
It seems that st_ivas->p_output_fx[2]
is set to NULL in BASOP code at the rateswitch, but the buffer is still accessed.
Ways to reproduce
Using STV items and the rateswitch file: omasa_1obj_techs_start_128k_2frames.bin
IVAS_cod -ism_masa 1 2 scripts/testv/stvOMASA_1ISM_2MASA2TC48c_ISM1.csv scripts/testv/stvOMASA_1ISM_2MASA2TC48c.met -max_band fb omasa_1obj_techs_start_128k_2frames.bin 48 scripts/testv/stvOMASA_1ISM_2MASA2TC48c.wav test_0257.bs
IVAS_dec EXT 32 test_0257.bs 0257_stvOMASA_1ISM_2MASA2TC48c.wav_omasa_1obj_techs_start_128k_2frames_48-32___EXT.wav