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: do not destroy screencopy resources before client request #9048

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

outfoxxed
Copy link
Member

Describe your PR, what does it fix/add?

Fixes client-side use-after-frees caused by screencopy failures. failed() is not a destructor, which means clients will attempt to call destroy() after receiving it, which becomes a use after free (protocol error) due to hyprland prematurely deleting the object.

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

No.

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

Ready to merge.

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.

1 participant