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

HookSystemManager: Make needsDeadCleanup volatile #6356

Merged
merged 1 commit into from
Jun 7, 2024

Conversation

JohnMH
Copy link
Contributor

@JohnMH JohnMH commented Jun 7, 2024

The value of needsDeadCleanup would be clobbered after longjmp, having an undefined value.

By making this variable volatile, it will always be read/written in memory instead of being stored in a register.

The value of needsDeadCleanup would be clobbered after longjmp,
having an undefined value.
Copy link
Member

@vaxerski vaxerski left a comment

Choose a reason for hiding this comment

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

thanks!

@vaxerski vaxerski merged commit 429cff3 into hyprwm:main Jun 7, 2024
10 checks passed
@JohnMH JohnMH deleted the memory-safety branch June 7, 2024 17:02
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