ALSA: opl3: small array underflow
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 5 Mar 2015 17:49:06 +0000 (20:49 +0300)
committerTakashi Iwai <tiwai@suse.de>
Fri, 6 Mar 2015 12:04:42 +0000 (13:04 +0100)
commitd124380674b58f62d0ef974630d74d67bb8afeb0
tree62b34be40785bf00659a881f1ef2cb01daaa376a
parentf44f07cf3910f84b15b2a78c4933d5946bf409cf
ALSA: opl3: small array underflow

There is a missing lower bound check on "pitchbend" so it means we can
read up to 6 elements before the start of the opl3_note_table[] array.

Thanks to Clemens Ladisch for his help with this patch.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/drivers/opl3/opl3_midi.c