]> git.karo-electronics.de Git - karo-tx-linux.git/commit
sound/oss/opl3: validate voice and channel indexes
authorDan Rosenberg <drosenberg@vsecurity.com>
Wed, 23 Mar 2011 15:42:57 +0000 (11:42 -0400)
committerPaul Gortmaker <paul.gortmaker@windriver.com>
Wed, 14 Mar 2012 14:56:51 +0000 (10:56 -0400)
commit3b98ed11cdbcb61797878495e4fab0c9f8f48c25
treeb29385e52a1fd54439965d4de88124014fa0908f
parent209b65108ec6a83941b8089b75c2699af0339105
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: Paul Gortmaker <paul.gortmaker@windriver.com>
sound/oss/opl3.c