Skip to content
Commit 3ddbe35d authored by Daniil Dementev's avatar Daniil Dementev Committed by Takashi Iwai
Browse files

ALSA: usb-audio: US16x08: Move overflow check before array access



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: default avatarDaniil Dementev <d.dementev@ispras.ru>
Reviewed-by: default avatarAlexey Khoroshilov <khoroshilov@ispras.ru>
Link: https://lore.kernel.org/r/20220610165732.2904-1-d.dementev@ispras.ru


Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent b2e6b3d9
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment