keyboard: Avoid access beyond end off buffer
authorRob Bradford <rob@linux.intel.com>
Tue, 9 Oct 2012 17:44:34 +0000 (18:44 +0100)
committerKristian Høgsberg <krh@bitplanet.net>
Wed, 10 Oct 2012 02:56:46 +0000 (22:56 -0400)
commit053fe7652bc6445a234892e567f076642c468703
treeac400654f6989100c30090063ffe17dcda53e94f
parent273fec8ede2bf1ec7c9fb14e841e383277113fdf
keyboard: Avoid access beyond end off buffer

If the for loop does not match on a button it will fall through and try and
dereference into the array using the terminating value of the loop. This
terminating value of the loop is the dimension of the array and thus beyond
its bounds.

Cc: Jan Arne Petersen <jpetersen@openismus.com>
Signed-off-by: Rob Bradford <rob@linux.intel.com>
clients/keyboard.c