Commit b44c9be2 authored by Julien Cristau's avatar Julien Cristau Committed by Peter Hutterer
Browse files

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's avatarJulien Cristau <>
Signed-off-by: Peter Hutterer's avatarPeter Hutterer <>
parent 190610e0
......@@ -834,7 +834,7 @@ static void test_convert_XIDeviceChangedEvent(void)
in.keys.max_keycode = 1 << 8;
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 */
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment