]> xenbits.xensource.com Git - libvirt.git/commit
send-key: fix scan keycode map
authorKAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Mon, 22 Aug 2011 10:02:15 +0000 (19:02 +0900)
committerEric Blake <eblake@redhat.com>
Mon, 22 Aug 2011 13:24:15 +0000 (07:24 -0600)
commit9f5afc732c5f5b790f1c1006d2d97adb3fa7bb30
tree93a53bfc7f67c5135d25e700189bc58d687f1d10
parent6611d9ebccde31e3d9b5eb0ec279e8541fcbeda7
send-key: fix scan keycode map

Now, bad key-code in send-key can cause segmentation fault in libvirt.
(example)
 % virsh send-key --codeset win32 12
   error: End of file while reading data: Input/output error

This is caused by overrun at scanning keycode array.

Fix it.

Signed-off-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
src/util/virkeycode.c