[codec,dsp] ensure intermediate buffer size

This commit is contained in:
Armin Novak 2024-07-10 15:29:18 +02:00
parent 848033839e
commit e54cd3ec13
No known key found for this signature in database
GPG Key ID: 2CF4A2D2D3D72105

View File

@ -811,6 +811,8 @@ static BOOL freerdp_dsp_encode_ima_adpcm(FREERDP_DSP_CONTEXT* WINPR_RESTRICT con
if (!Stream_EnsureRemainingCapacity(out, size))
return FALSE;
if (!Stream_EnsureRemainingCapacity(context->common.buffer, size + 64))
return FALSE;
align = (context->common.format.nChannels > 1) ? 32 : 4;