]> git.karo-electronics.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)
committerBen Hutchings <ben@decadent.org.uk>
Wed, 6 Feb 2013 04:33:24 +0000 (04:33 +0000)
commit5d71c43a71a2ae5d331bd65fa9fe3bfd26a7ba85
treeda463b131598bdc9d7fce7775f8d7f1cf1da0664
parent6c3e9f4ad9fff8f3af7f20891da695bc7caf7c52
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>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
drivers/staging/speakup/synth.c