sound/oss/opl3: validate voice and channel indexes
authorDan Rosenberg <drosenberg@vsecurity.com>
Wed, 23 Mar 2011 15:42:57 +0000 (11:42 -0400)
committerTakashi Iwai <tiwai@suse.de>
Wed, 23 Mar 2011 21:48:13 +0000 (22:48 +0100)
commit4d00135a680727f6c3be78f8befaac009030e4df
tree730a88b218c6540feda268aa6df5d9ef349abc5a
parentb769f49463711205d57286e64cf535ed4daf59e9
sound/oss/opl3: validate voice and channel indexes

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>
Cc: stable@kernel.org
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/oss/opl3.c