Skip to content

Conversation

TheBlueMatt
Copy link

When hot-plugging monitor(s) ipc_json_describe_workspace can end up dereferencing a NULL ptr in wlr_output->name. Here we simply check that it is set.

While this is probably a race and just checking that it is not NULL before accessing it won't fully solve the race, it should make it substantially more rare.

Mostly addresses #8747

When hot-plugging monitor(s) `ipc_json_describe_workspace` can end
up dereferencing a NULL ptr in `wlr_output->name`. Here we simply
check that it is set.

While this is probably a race and just checking that it is not NULL
before accessing it won't fully solve the race, it should make it
substantially more rare.

Mostly addresses swaywm#8747
@emersion
Copy link
Member

I would prefer to find the root cause of this NULL pointer instead of adding a workaround.

@TheBlueMatt
Copy link
Author

Sure, don't disagree, but absent someone having time to dig into it probably worth at least making sway stable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants