Skip to content

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
@jserv jserv mentioned this pull request Oct 16, 2025
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