Skip to content

Add closure lifetime tracking to prevent use-after-free #120

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

This commit implements a defensive closure tracking that validates pointers before callback execution in work queues and timeout systems.

Summary by Bito

This pull request implements a closure lifetime tracking system in the Twin window and widget management systems to prevent use-after-free vulnerabilities. Key enhancements include closure pointer management, validation, and reference counting, improving the safety and reliability of callbacks. The Makefile has also been updated to support these changes.

This commit implements a defensive closure tracking that validates
pointers before callback execution in work queues and timeout systems.
@jserv jserv merged commit 3f83361 into main Aug 2, 2025
6 checks passed
@jserv jserv deleted the closure-lifetime branch August 2, 2025 04:41
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