Stack corruption in ivas_mct_core_enc() in OSBA
# Basic info <!--- Add commit SHA used to reproduce--> - Fixed point: - Encoder (fixed): ae609fd05b1744a0082e0ee17b786014550747d9 (BASOP main) - Decoder (fixed): # Bug description The encoder crashes in OSBA bitrate switching conditions. A similar problem likely exists in SBA. For the command line below, a stack corruption is reported in frame 10. ![Screenshot - 8_19_2025 , 8_43_41 AM.jpg](/uploads/a9b827cccd5114888de63889b4df6369/Screenshot_-_8_19_2025___8_43_41_AM.jpg) Observation: the issue is gone when * **`NONBE_FIX_1097_SBA_DTX_BRATE_SWITCHING_ENC`** is deactivated, or * the number of channels is patched for one buffer: powerSpecMsInv_long_fx\[**2 \*** MCT_MAX_CHANNELS - CPE_CHANNELS\]\[L_FRAME48k\] # Ways to reproduce > ivas_cod.exe -ism_sba 4 3 scripts/testv/stvISM1.csv scripts/testv/stvISM2.csv scripts/testv/stvISM3.csv scripts/testv/stvISM4.csv scripts/switchPaths/sw_13k2_512k.bin 32 scripts/testv/stvOSBA_4ISM_3OA32c.wav bit ```bash ``` <!--- Below are labels that will be added but are not shown in description. This is a template to help fill them. Add further information to the first row and remove and add labels as necessary.-->
issue