Re: [PATCH] ALSA: usb-audio: US16x08: Move overflow check before array access

From: Takashi Iwai
Date: Mon Jun 13 2022 - 01:45:33 EST


On Fri, 10 Jun 2022 18:57:32 +0200,
Daniil Dementev wrote:
>
> Buffer overflow could occur in the loop "while", due to accessing an
> array element before checking the index.
>
> Found by Linux Verification Center (linuxtesting.org) with SVACE.
>
> Signed-off-by: Daniil Dementev <d.dementev@xxxxxxxxx>
> Reviewed-by: Alexey Khoroshilov <khoroshilov@xxxxxxxxx>

Thanks, applied.


Takashi