Skip to content

gh-146065: Fix NULL dereference in FutureIter_am_send - #158468

Open
msullivan wants to merge 2 commits into
python:mainfrom
msullivan:gh-146065-fix-futureiter-null-deref-take-2
Open

msullivan wants to merge 2 commits into
python:mainfrom
msullivan:gh-146065-fix-futureiter-null-deref-take-2

Conversation

@msullivan

@msullivan msullivan commented Sep 30, 2026 •

Copy link
Copy Markdown
Contributor

This is based on #146304, but fixes a concurrency issue where future is accessed unsafely.

This is based on python#146304, but fixes a concurrency issue where `future`
is accessed unsafely.

Co-authored-by: VanshAgarwal24036 <148854295+VanshAgarwal24036@users.noreply.github.com>
Co-authored-by: Victor Stinner <vstinner@python.org>
Comment thread Modules/_asynciomodule.c Outdated
This just gets rid of any confusion about why FutureIter_clear is
using a critical section
@msullivan
msullivan force-pushed the gh-146065-fix-futureiter-null-deref-take-2 branch from 287d4df to d51862b Compare September 30, 2026 17:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants