]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
staging: speakup: avoid out-of-range access in synth_init()
authorNickolai Zeldovich <nickolai@csail.mit.edu>
Sat, 5 Jan 2013 19:17:45 +0000 (14:17 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 17 Jan 2013 16:46:35 +0000 (08:46 -0800)
commit92b8a9f4d01e371ea5e2405b9c670a29dab476e7
tree7aa7d6c771365971f50de4606989e52ecb1a8513
parent9cad2ff8299b48c44b6d04c030138719dd528c74
staging: speakup: avoid out-of-range access in synth_init()

commit ae428655b826f2755a8101b27beda42a275ef8ad upstream.

Check that array index is in-bounds before accessing the synths[] array.

Signed-off-by: Nickolai Zeldovich <nickolai@csail.mit.edu>
Cc: Samuel Thibault <samuel.thibault@ens-lyon.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/speakup/synth.c