]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
staging: speakup: avoid out-of-range access in synth_add()
authorSamuel Thibault <samuel.thibault@ens-lyon.org>
Mon, 7 Jan 2013 21:03:51 +0000 (22:03 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 17 Jan 2013 16:44:09 +0000 (08:44 -0800)
commit71a1306551e811989c0164c614845fea352d8b57
tree3c523c008467f9cf210a6b23e0bfa70b1db8d0f2
parent36aa8707613d57452ebfda30812e8715f019c453
staging: speakup: avoid out-of-range access in synth_add()

commit 6102c48bd421074a33e102f2ebda3724e8d275f9 upstream.

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

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