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

protocols: fix shm fd size check before creating or resizing shm_pool #8572

Merged
merged 2 commits into from
Nov 25, 2024

Conversation

nabil-otsmane
Copy link
Contributor

Describe your PR, what does it fix/add?

Hyprland is crashing when trying to access SHM pool buffer because of the lack of size validation on the fd sent from the client.

To reproduce this bug please check this issue #8570

Is there anything you want to mention? (unchecked code, possible bugs, found problems, breaking compatibility, etc.)

The code might need some refactoring, and the check function can be moved somewhere else.

Please let me know anything needs to be changed.

Is it ready for merging, or does it need work?

Yes

@vaxerski vaxerski merged commit 1930a95 into hyprwm:main Nov 25, 2024
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants