Mismatch of expected and provided function argument size in McMASA enc
Found in #887 (closed)
McMASA encoding calls the functions computeIntensityVector_enc (in ivas_mcmasa_enc.c) and computeReferencePower_enc (in ivas_dirac_enc.c) with buffers of size [FOA_CHANNELS][DIRAC_NO_FB_BANDS_MAX] while the functions interface defines buffers of size [DIRAC_MAX_ANA_CHANS][DIRAC_NO_FB_BANDS_MAX].
The actual use in the functions does not over-index as
-
computeIntensityVector_encaccesses only 4 =FOA_CHANNELSelements, and -
computeReferencePower_encreceives an extra argument defining the number of channels in the data.