Xwayland segfaults if keymap has no indicators
If a keymap has no indicators, the indicators
field in _XkbDesc
is NULL. However, this field later dereferenced unconditionally in some place (unclear where exactly), for example here:
sli->maps = xkb->indicators->maps;
This does not yet cause a segfault since it only performs pointer arithmetic. However, this pointer arithmetic causes sli->maps
not not be NULL, which disables later null pointer checks which then cause a segfault when dereferencing sli->maps
.