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)
committerTakashi Iwai <tiwai@suse.de>
Sun, 8 May 2016 09:39:44 +0000 (11:39 +0200)
commit84d7a4470dbac0dd9389050100b54a1625d04264
tree19fbd6b26fc3fc8c7bce4f3441c44f518abd46e0
parente4ec8cc8039a7063e24204299b462bd1383184a5
ALSA: isa/wavefront: prevent some out of bound writes

"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>
sound/isa/wavefront/wavefront_synth.c
This page took 0.025385 seconds and 5 git commands to generate.