Skip to content

Crash due to an overflow in random noise seed generation

with c7ca9d3e, there is an overflow assert when creating a seed for random noise generation.

The problem happens in gsc_dec_fx.c at Ln 1568, to keep the bit exactness with EVS, here is a proposed correction:

#ifdef BASOP_NOGLOB_TMP_715 
   seed_init = add_sat( seed_init, 3 );
#else
   seed_init = add( seed_init, 3 );
#endif

Problem can be re-create using the following bitstream :

stereo_32000_32.zip

Decoder command line : IVAS_dec STEREO 32 stereo_32000_32.bit syn