Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Xinerama crashing bug on non-xinerama screens #289

Conversation

kristopolous
Copy link
Sponsor Contributor

There's a possibility of a null pointer returned by
XRRGetScreenResources in mod_xrandr_get_outputs_for_geom. It wasn't
getting checked. Now it is.

There's a possibility of a null pointer returned by
XRRGetScreenResources in mod_xrandr_get_outputs_for_geom. It wasn't
getting checked. Now it is.
@raboof raboof changed the title Fixes 288 - xinerama crashing bug on non-xinerama screens Xinerama crashing bug on non-xinerama screens Jun 7, 2020
Copy link
Owner

@raboof raboof left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! I wasn't able to find any documentation for this API, so I'm going to take your word for it.

Shouldn't the same check be applied to mod_xrandr_get_all_outputs?

@raboof raboof merged commit 517841d into raboof:master Jun 7, 2020
@raboof
Copy link
Owner

raboof commented Jun 7, 2020

Fixes #288

@kristopolous
Copy link
Sponsor Contributor Author

kristopolous commented Jun 7, 2020

I don't know tbh... I certainly don't have enough experience with this codebase to be able have an opinion on preemptive protections, it wasn't crashing out on me

@raboof
Copy link
Owner

raboof commented Jun 8, 2020

I certainly don't have enough experience with this codebase to be able have an opinion on preemptive protections, it wasn't crashing out on me

Well, given that we now know XRRGetScreenResources can return null in some situations, I think we should make sure mod_xrandr_get_all_outputs doesn't crash in that situation ;). Filed #292

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

Successfully merging this pull request may close these issues.

2 participants