Skip to content

Prevent crashes from invalid closures in work/timeout queues #119

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

Merged
merged 1 commit into from
Aug 2, 2025

Conversation

jserv
Copy link
Contributor

@jserv jserv commented Aug 2, 2025

Platform-aware pointer validation is added to prevent invalid memory access when callbacks execute with freed widget pointers. It validates closures both at scheduling time and before execution.

Fixes crashes in _twin_toplevel_paint() during mouse event handling.

Summary by Bito

This pull request implements critical bug fixes to prevent crashes from invalid closure pointers in work and timeout queues. It introduces platform-aware pointer validation, ensuring closures are validated at both scheduling and execution times, addressing memory access violations during mouse event handling.

Platform-aware pointer validation is added to prevent invalid memory
access when callbacks execute with freed widget pointers. It validates
closures both at scheduling time and before execution.

Fixes crashes in _twin_toplevel_paint() during mouse event handling.
@jserv jserv merged commit b818d67 into main Aug 2, 2025
6 checks passed
@jserv jserv deleted the validate-closures branch August 2, 2025 03:09
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.

1 participant