OSDN Git Service

ALSA: isa/wavefront: prevent some out of bound writes
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 4 May 2016 06:27:37 +0000 (09:27 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 21 Dec 2018 13:09:54 +0000 (14:09 +0100)
commit76feba7d21d85975bb97d4dc8249e5a963657380
treeca2a0b442976178076b6f08bacaa2b8f8b8fc5b8
parente3f904b939d2b70207f0decdacbf6d231bc3d7bc
ALSA: isa/wavefront: prevent some out of bound writes

[ Upstream commit 84d7a4470dbac0dd9389050100b54a1625d04264 ]

"header->number" can be up to USHRT_MAX and it comes from the ioctl so
it needs to be capped.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
sound/isa/wavefront/wavefront_synth.c