sound/oss/opl3: validate voice and channel indexes
commit2f74a0681817b04ebcad2068935807a9a554c3e8
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 20:01:59 +0000 (14 13:01 -0700)
treebfc643adc25938de9f693c901683fb0ea42ee62f
parentdd6809706f2e100ecd9afb5435bfed847c57f2e6
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