backends/x11: Don't try to read more button states than there are
This was causing an (inconsequential) invalid read. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1728>
This commit is contained in:
parent
2744722b8c
commit
335a85ab84
@ -1514,7 +1514,7 @@ translate_state (XIButtonState *button_state,
|
|||||||
|
|
||||||
if (button_state)
|
if (button_state)
|
||||||
{
|
{
|
||||||
for (i = 1; i <= button_state->mask_len * 8; i++)
|
for (i = 1; i < button_state->mask_len * 8; i++)
|
||||||
{
|
{
|
||||||
if (!XIMaskIsSet (button_state->mask, i))
|
if (!XIMaskIsSet (button_state->mask, i))
|
||||||
continue;
|
continue;
|
||||||
|
Loading…
Reference in New Issue
Block a user