sound/oss/opl3: validate voice and channel indexes
commit3636db595bcbfb95c2bcbc8769abe12b0d1d00dd
authorDan Rosenberg <drosenberg@vsecurity.com>
Wed, 23 Mar 2011 15:42:57 +0000 (23 11:42 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 14 Apr 2011 23:52:48 +0000 (14 16:52 -0700)
tree5fe2ce1facfb4e3c3dddddf6253293de6ee288fa
parent22c6c0e68cebc09d32e53d4034805d130f500df5
sound/oss/opl3: validate voice and channel indexes

commit 4d00135a680727f6c3be78f8befaac009030e4df upstream.

User-controllable indexes for voice and channel values may cause reading
and writing beyond the bounds of their respective arrays, leading to
potentially exploitable memory corruption.  Validate these indexes.

Signed-off-by: Dan Rosenberg <drosenberg@vsecurity.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
sound/oss/opl3.c