Staging: speakup: fix an out-of-bounds error.
authorChristopher Brannon <chris@the-brannons.com>
Mon, 21 Feb 2011 14:07:10 +0000 (14:07 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 23 Feb 2011 22:39:09 +0000 (14:39 -0800)
The cur_item variable from keyhelp.c is an index into a table of
messages.  The following condition should always hold:
MSG_FUNCNAMES_START + cur_item <= MSG_FUNCNAMES_END.
The check in keyhelp.c was wrong.  It allowed cur_item to be
incremented to an out-of-bounds value.

Signed-off-by: Christopher Brannon <chris@the-brannons.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

No differences found