Re: [PATCH] ALSA: emux: Avoid potential array out-of-bound in snd_emux_xg_control()

From: Takashi Iwai
Date: Tue Feb 07 2023 - 08:33:14 EST


On Tue, 07 Feb 2023 14:20:26 +0100,
Artemii Karasev wrote:
>
> snd_emux_xg_control() can be called with an argument 'param' greater
> than size of 'control' array. It may lead to accessing 'control'
> array at a wrong index.
>
> Found by Linux Verification Center (linuxtesting.org) with SVACE.
>
> Signed-off-by: Artemii Karasev <karasev@xxxxxxxxx>
> Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2")

Thanks, applied now.


Takashi