Skip to content

gh-156689: Fix out-of-bounds read in PyAst_CheckMode() for mode='func_type' - #156697

Merged
StanFromIreland merged 1 commit into
python:mainfrom
StanFromIreland:PyAst_CheckMode
Aug 31, 2026
Merged

gh-156689: Fix out-of-bounds read in PyAst_CheckMode() for mode='func_type'#156697
StanFromIreland merged 1 commit into
python:mainfrom
StanFromIreland:PyAst_CheckMode

Conversation

@StanFromIreland

@StanFromIreland StanFromIreland commented Aug 31, 2026

Copy link
Copy Markdown
Member

@read-the-docs-community

Copy link
Copy Markdown

Documentation build overview

📚 cpython-previews | 🛠️ Build #34309227 | 📁 Comparing dbcae36 against main (03503dc)

  🔍 Preview build  

2 files changed
± library/ast.html
± whatsnew/changelog.html

@pablogsal pablogsal left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@StanFromIreland
StanFromIreland merged commit d7f9c64 into python:main Aug 31, 2026
60 checks passed
@StanFromIreland
StanFromIreland deleted the PyAst_CheckMode branch August 31, 2026 11:49
@StanFromIreland StanFromIreland added needs backport to 3.13 bugs and security fixes needs backport to 3.14 bugs and security fixes needs backport to 3.15 pre-release feature fixes, bugs and security fixes labels Aug 31, 2026
@miss-islington-app

Copy link
Copy Markdown

Thanks @StanFromIreland for the PR 🌮🎉.. I'm working now to backport this PR to: 3.13.
🐍🍒⛏🤖

@miss-islington-app

Copy link
Copy Markdown

Thanks @StanFromIreland for the PR 🌮🎉.. I'm working now to backport this PR to: 3.14.
🐍🍒⛏🤖

@miss-islington-app

Copy link
Copy Markdown

Thanks @StanFromIreland for the PR 🌮🎉.. I'm working now to backport this PR to: 3.15.
🐍🍒⛏🤖

@miss-islington-app

Copy link
Copy Markdown

Sorry, @StanFromIreland, I could not cleanly backport this to 3.13 due to a conflict.
Please backport using cherry_picker on command line.

cherry_picker d7f9c6400f49633221983d0c454cf27ecb0302ba 3.13

@bedevere-app

bedevere-app Bot commented Aug 31, 2026

Copy link
Copy Markdown

GH-156704 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 Aug 31, 2026
@bedevere-app

bedevere-app Bot commented Aug 31, 2026

Copy link
Copy Markdown

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

@bedevere-app bedevere-app Bot removed the needs backport to 3.15 pre-release feature fixes, bugs and security fixes label Aug 31, 2026
@StanFromIreland StanFromIreland removed the needs backport to 3.13 bugs and security fixes label Aug 31, 2026
@StanFromIreland

Copy link
Copy Markdown
Member Author

Can't reproduce on 3.13.

StanFromIreland added a commit that referenced this pull request Aug 31, 2026
…mode='func_type'` (GH-156697) (#156704)

(cherry picked from commit d7f9c64)

Co-authored-by: Stan Ulbrych <stan@python.org>
@bedevere-bot

Copy link
Copy Markdown

⚠️⚠️⚠️ Buildbot failure ⚠️⚠️⚠️

Hi! The buildbot AMD64 CentOS9 Refleaks 3.x (tier-1) has failed when building commit d7f9c64.

What do you need to do:

  1. Don't panic.
  2. Check the buildbot page in the devguide if you don't know what the buildbots are or how they work.
  3. Go to the page of the buildbot that failed (https://buildbot.python.org/#/builders/853/builds/4189) and take a look at the build logs.
  4. Check if the failure is related to this commit (d7f9c64) or if it is a false positive.
  5. If the failure is related to this commit, please, reflect that on the issue and make a new Pull Request with a fix.

You can take a look at the buildbot page here:

https://buildbot.python.org/#/builders/853/builds/4189

Summary of the results of the build (if available):

==

Click to see traceback logs
Note: switching to 'd7f9c6400f49633221983d0c454cf27ecb0302ba'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by switching back to a branch.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -c with the switch command. Example:

  git switch -c <new-branch-name>

Or undo this operation with:

  git switch -

Turn off this advice by setting config variable advice.detachedHead to false

HEAD is now at d7f9c6400f49 gh-156689: Fix out-of-bounds read in `PyAst_CheckMode()` for `mode='func_type'` (#156697)
Switched to and reset branch 'main'

make: *** [Makefile:2480: buildbottest] Error 3

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.

3 participants