Skip to content

Avoid destroying sentinel event on async_register_event failure#80

Open
samuellauren wants to merge 1 commit intoWithSecureOpenSource:masterfrom
samuellauren:laursa/avoid-destroying-sentinels
Open

Avoid destroying sentinel event on async_register_event failure#80
samuellauren wants to merge 1 commit intoWithSecureOpenSource:masterfrom
samuellauren:laursa/avoid-destroying-sentinels

Conversation

@samuellauren
Copy link
Copy Markdown
Collaborator

async_set_up_wakeup passes ASYNC_SENTINEL_EVENT (a NULL pointer) to async_register_event. On epoll_ctl/kevent failure, the error path unconditionally called destroy_async_event on the sentinel, which dereferences NULL and crashes. Guard the destroy call the same way async_unregister already does.

async_set_up_wakeup passes ASYNC_SENTINEL_EVENT (a NULL pointer) to
async_register_event. On epoll_ctl/kevent failure, the error path
unconditionally called destroy_async_event on the sentinel, which
dereferences NULL and crashes. Guard the destroy call the same way
async_unregister already does.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
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