Skip to content

Mismatch of the expected and provided function argument size in renderIsmToMASA

Found in #887 (closed)

In lib_rend/lib_rend.c function renderIsmToMasa the variable

float tmpRendBuffer[MAX_NUM_OBJECTS][L_FRAME48k];

is used as the input argument to

  • copyBufferTo2dArray expecting the argument to be float array[MAX_OUTPUT_CHANNELS][L_FRAME48k], and
  • accumulate2dArrayToBuffer expecting the argument to be float array[MAX_OUTPUT_CHANNELS][L_FRAME48k].

In both cases, the actual number of channels to process is read from buffer->config.numChannels and no over-indexing takes place.