Skip to content

gh-148222 Fix Null dereference bugs at genericaliasobject.c - #148226

Merged
JelleZijlstra merged 14 commits into
python:mainfrom
prakashsellathurai:fix/148222
Apr 18, 2026
Merged

JelleZijlstra merged 14 commits into
python:mainfrom
prakashsellathurai:fix/148222

Conversation

@prakashsellathurai

@prakashsellathurai prakashsellathurai commented Apr 7, 2026 •

Copy link
Copy Markdown
Contributor
Comment thread Objects/genericaliasobject.c Resolved
Comment thread Objects/genericaliasobject.c Resolved

@serhiy-storchaka serhiy-storchaka 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.

Is it possible to write a test for the vectorcall part?

@prakashsellathurai

prakashsellathurai commented Apr 14, 2026 •

Copy link
Copy Markdown
Contributor Author

Is it possible to write a test for the vectorcall part?
@serhiy-storchaka

I spent some time on this. since this bug occurs at C implementations level, we cannot reproduce in python unit tests.

also with custom _testcapi extension i am not ably to reliably simulate that exact flow

@serhiy-storchaka serhiy-storchaka 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. 👍

@prakashsellathurai

Copy link
Copy Markdown
Contributor Author

@serhiy-storchaka thanks for the pr review.

all checks are passing. Since I don't have merge access, could you please merge this when you get a chance? Thank you!

@JelleZijlstra JelleZijlstra added needs backport to 3.13 only security fixes needs backport to 3.14 bugs and security fixes labels Apr 18, 2026
@JelleZijlstra
JelleZijlstra merged commit 634568d into python:main Apr 18, 2026
58 checks passed
@miss-islington-app

Copy link
Copy Markdown

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

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Apr 18, 2026
…ythonGH-148226)

(cherry picked from commit 634568d)

Co-authored-by: Prakash Sellathurai <prakashsellathurai@gmail.com>
@bedevere-app

bedevere-app Bot commented Apr 18, 2026

Copy link
Copy Markdown

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

@miss-islington-app

Copy link
Copy Markdown

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

cherry_picker 634568d030f18183212c01bd4544aa7f97e05442 3.13
@bedevere-app bedevere-app Bot removed the needs backport to 3.14 bugs and security fixes label Apr 18, 2026
@JelleZijlstra

Copy link
Copy Markdown
Member

Would you mind checking if the bug is also present on the 3.13 branch and backport it to 3.13 if so?

JelleZijlstra pushed a commit that referenced this pull request Apr 18, 2026
…H-148226) (#148705)

gh-148222: Fix NULL dereference bugs in genericaliasobject.c (GH-148226)
(cherry picked from commit 634568d)

Co-authored-by: Prakash Sellathurai <prakashsellathurai@gmail.com>
prakashsellathurai added a commit to prakashsellathurai/cpython that referenced this pull request Apr 18, 2026
@bedevere-app

bedevere-app Bot commented Apr 18, 2026

Copy link
Copy Markdown

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

@bedevere-app

bedevere-app Bot commented Apr 18, 2026

Copy link
Copy Markdown

GH-148712 is a backport of this pull request to the 3.13 branch.

@bedevere-app bedevere-app Bot removed the needs backport to 3.13 only security fixes label Apr 18, 2026
prakashsellathurai added a commit to prakashsellathurai/cpython that referenced this pull request Apr 18, 2026
@bedevere-app

bedevere-app Bot commented Apr 18, 2026

Copy link
Copy Markdown

GH-148717 is a backport of this pull request to the 3.13 branch.

@prakashsellathurai

Copy link
Copy Markdown
Contributor Author

Would you mind checking if the bug is also present on the 3.13 branch and backport it to 3.13 if so?

@JelleZijlstra raised backport to 3.13 in #148717

prakashsellathurai added a commit to prakashsellathurai/cpython that referenced this pull request Apr 18, 2026
prakashsellathurai added a commit to prakashsellathurai/cpython that referenced this pull request Apr 18, 2026
JelleZijlstra pushed a commit that referenced this pull request Apr 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants