Is the wl_keyboard::keymap buffer null terminated?
The protocol does not speak to this and/or whether size
includes the null terminator.
Since 2012, xkbcommon will stop parsing after the first map and ignore all trailing bytes. Therefore calling xkb_keymap_new_from_buffer
will always work. But calling xkb_keymap_new_from_string
can cause out-of-bounds reads if size
does not include a null terminator.