Skip to content

[Non-BE] Resolve "USAN: index out of bounds in OSBA JBM decoding to mono and stereo with rate switching"

Reason why this change is needed

Clang usan sanitizer test in pipeline found an error:

lib_dec/ivas_jbm_dec.c:2545:28: runtime error: index 8 out of bounds for type 'int16_t [8]'
SUMMARY: UndefinedBehaviorSanitizer: out-of-bounds-index lib_dec/ivas_jbm_dec.c:2545:28 in 

Link to test pipeline: https://forge.3gpp.org/rep/ivas-codec-pc/ivas-codec/-/jobs/205521

Source was a update gone wrong of the TC buffers subframe info during a rate switch

Description of the change

Make sure the sub frame info is transfered in a correct manner at a rate switch in (O)SBA.

Affected operating points

  • (O)SBA JBM to mono/stereo decoding with rate switching
  • Produced bitstream is BE compared to previous state (No encoder change).

Related to #974 (closed)

Edited by bayers

Merge request reports

Loading