Skip to content

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

Merged
kumaraditya303 merged 3 commits into
python:mainfrom
msullivan:gh-146065-fix-futureiter-null-deref-take-2
Oct 20, 2026
Merged

kumaraditya303 merged 3 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
@kumaraditya303
kumaraditya303 merged commit 66e391d into python:main Oct 20, 2026
55 checks passed
@kumaraditya303 kumaraditya303 added awaiting merge needs backport to 3.14 bugs and security fixes needs backport to 3.15 bugs and security fixes labels Oct 20, 2026
@miss-islington-app

Copy link
Copy Markdown

Thanks @msullivan for the PR, and @kumaraditya303 for merging it 🌮🎉.. I'm working now to backport this PR to: 3.15.
🐍🍒⛏🤖

@miss-islington-app

Copy link
Copy Markdown

Thanks @msullivan for the PR, and @kumaraditya303 for merging it 🌮🎉.. I'm working now to backport this PR to: 3.14.
🐍🍒⛏🤖

@bedevere-app

bedevere-app Bot commented Oct 20, 2026

Copy link
Copy Markdown

GH-159870 is a backport of this pull request to the 3.15 branch.

@bedevere-app bedevere-app Bot removed the needs backport to 3.15 bugs and security fixes label Oct 20, 2026
@bedevere-app

bedevere-app Bot commented Oct 20, 2026

Copy link
Copy Markdown

GH-159871 is a backport of this pull request to the 3.14 branch.

@bedevere-app bedevere-app Bot removed the needs backport to 3.14 bugs and security fixes label Oct 20, 2026
kumaraditya303 pushed a commit that referenced this pull request Oct 20, 2026
…) (#159871)

gh-146065: Fix NULL dereference in FutureIter_am_send (GH-158468)
(cherry picked from commit 66e391d)

Co-authored-by: Michael J. Sullivan <sully@msully.net>
kumaraditya303 pushed a commit that referenced this pull request Oct 20, 2026
…) (#159870)

gh-146065: Fix NULL dereference in FutureIter_am_send (GH-158468)
(cherry picked from commit 66e391d)

Co-authored-by: Michael J. Sullivan <sully@msully.net>
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.

3 participants