mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2025-12-26 22:50:06 +01:00
test/xi2: fix maximum max_keycode (bug#25492)
The number of keycodes needs to be lower than 0xFFFD so that the length field of xXIKeyInfo doesn't overflow. Signed-off-by: Julien Cristau <jcristau@debian.org> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
190610e0c6
commit
b44c9be244
1 changed files with 1 additions and 1 deletions
|
|
@ -834,7 +834,7 @@ static void test_convert_XIDeviceChangedEvent(void)
|
|||
in.keys.max_keycode = 1 << 8;
|
||||
test_XIDeviceChangedEvent(&in);
|
||||
|
||||
in.keys.max_keycode = 0xFFFD; /* highest range, above that the length
|
||||
in.keys.max_keycode = 0xFFFC; /* highest range, above that the length
|
||||
field gives up */
|
||||
test_XIDeviceChangedEvent(&in);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue