sound/oss/opl3: validate voice and channel indexes
authorDan Rosenberg <drosenberg@vsecurity.com>
Wed, 23 Mar 2011 15:42:57 +0000 (11:42 -0400)
committerBrad Figg <brad.figg@canonical.com>
Wed, 27 Apr 2011 18:40:28 +0000 (11:40 -0700)
commit61fbb4490b56b84bbd6b5b2a731ff56240311175
treeb448714278c58251b80acab34bb0d14eefb99c98
parent084401057d70b10c2fd06f94831faa334f8e1d63
sound/oss/opl3: validate voice and channel indexes

BugLink: http://bugs.launchpad.net/bugs/761134

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>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
sound/oss/opl3.c