]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: isa/wavefront: prevent out of bounds write in ioctl
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 1 May 2020 09:40:11 +0000 (12:40 +0300)
committerTakashi Iwai <tiwai@suse.de>
Fri, 1 May 2020 10:25:49 +0000 (12:25 +0200)
commit7a2b0af1dc1bf6ad2b66529adbfe6df72fa1df7d
tree33deaf6b3ec97c70419f47bc3fcece72baf0747f
parent3210315be375167913826803cea65a21c2459427
ALSA: isa/wavefront: prevent out of bounds write in ioctl

The "header->number" comes from the ioctl and it needs to be clamped to
prevent out of bounds writes.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Link: https://lore.kernel.org/r/20200501094011.GA960082@mwanda
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/isa/wavefront/wavefront_synth.c