Skip to content

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
@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