Skip to content
This repository has been archived by the owner on Nov 1, 2021. It is now read-only.

Prevent NULL dereference in tablet_tool handler #1551

Merged
merged 1 commit into from
Feb 19, 2019

Conversation

Ongy
Copy link

@Ongy Ongy commented Feb 15, 2019

In case a tool was removed, but not yet destroyed by the client, the
tool_client's tool can be NULL. We have to check that as well in the
set_cursor handler to prevent using inert resources

Should fix #1536 (comment)

This probably only ever happens with tablets that don't track unique tools (or maybe on unplug?), so I can't test this well.
@wsinnema please test this for me, I can't reproduce it with my hardware.

In case a tool was removed, but not yet destroyed by the client, the
tool_client's tool can be NULL. We have to check that as well in the
set_cursor handler to prevent using inert resources
@wsinnema
Copy link

It works for me

@emersion emersion merged commit fc9838b into swaywm:master Feb 19, 2019
@emersion
Copy link
Member

Thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Rootston crashes when used with tablet tool
3 participants