Skip to content

gh-110864: Fix _PyArg_UnpackKeywordsWithVararg overwriting vararg with NULL #110868

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 16, 2023

Conversation

sobolevn
Copy link
Member

@sobolevn sobolevn commented Oct 14, 2023

This fix feels like a hack (basically as any other argument parsing fix) :)
But, it seems to be semantically correct, do its job, pass tests.

Copy link
Member

@JelleZijlstra JelleZijlstra left a comment

Choose a reason for hiding this comment

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

Thanks!

@erlend-aasland erlend-aasland merged commit c2192a2 into python:main Oct 16, 2023
@miss-islington
Copy link
Contributor

Thanks @sobolevn for the PR, and @erlend-aasland for merging it 🌮🎉.. I'm working now to backport this PR to: 3.12.
🐍🍒⛏🤖

@miss-islington
Copy link
Contributor

Sorry, @sobolevn and @erlend-aasland, I could not cleanly backport this to 3.12 due to a conflict.
Please backport using cherry_picker on command line.

cherry_picker c2192a2bee17e2ce80c5af34410ccd0c8b6e08aa 3.12

@erlend-aasland erlend-aasland changed the title gh-110864: Fix _PyArg_UnpackKeywordsWithVararg overwritting vararg with NULL gh-110864: Fix _PyArg_UnpackKeywordsWithVararg overwriting vararg with NULL Oct 16, 2023
@hugovk
Copy link
Member

hugovk commented Nov 9, 2023

@sobolevn @erlend-aasland Does this still need a 3.12 backport? If not, let's close #110864.

@erlend-aasland
Copy link
Contributor

cc. @JelleZijlstra who added the backport label.

@JelleZijlstra
Copy link
Member

Ideally this should be fixed in 3.12 too, but if that's difficult to do, we can probably forget about it. The surface bug was already fixed in 3.12.

aisk pushed a commit to aisk/cpython that referenced this pull request Feb 11, 2024
Glyphack pushed a commit to Glyphack/cpython that referenced this pull request Sep 2, 2024
@ZeroIntensity ZeroIntensity removed the needs backport to 3.12 only security fixes label Feb 17, 2025
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.

6 participants