Skip to content

gh-110241: Add missing error check to record_eval in _testinternalcapi #110242

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 2, 2023

Conversation

sobolevn
Copy link
Member

@sobolevn sobolevn commented Oct 2, 2023

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.

When I opened that issue I half expected you to grep and find more cases :).

I take it you grepped for calls to PyList_Append where the return value is ignored and this was the only other one?

@sobolevn
Copy link
Member Author

sobolevn commented Oct 2, 2023

I take it you grepped for calls to PyList_Append where the return value is ignored and this was the only other one?

Yeap :)

There are some PyList_SetItem that I found, but it is too late today. I will do that tomorrow. It also requires some research: either using PyList_SET_ITEM or proper error handling.

@JelleZijlstra JelleZijlstra merged commit 4596c76 into python:main Oct 2, 2023
@miss-islington
Copy link
Contributor

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

@miss-islington
Copy link
Contributor

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

cherry_picker 4596c76d1a7650fd4650c814dc1d40d664cd8fb4 3.11

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Oct 2, 2023
…ternalcapi` (pythonGH-110242)

(cherry picked from commit 4596c76)

Co-authored-by: Nikita Sobolev <[email protected]>
@bedevere-app
Copy link

bedevere-app bot commented Oct 2, 2023

GH-110244 is a backport of this pull request to the 3.12 branch.

@bedevere-app bedevere-app bot removed the needs backport to 3.12 only security fixes label Oct 2, 2023
@JelleZijlstra
Copy link
Member

Guess this code isn't in 3.11.

@JelleZijlstra JelleZijlstra removed the needs backport to 3.11 only security fixes label Oct 2, 2023
JelleZijlstra pushed a commit that referenced this pull request Oct 2, 2023
…nternalcapi` (GH-110242) (#110244)

gh-110241: Add missing error check to `record_eval` in `_testinternalcapi` (GH-110242)
(cherry picked from commit 4596c76)

Co-authored-by: Nikita Sobolev <[email protected]>
Glyphack pushed a commit to Glyphack/cpython that referenced this pull request Sep 2, 2024
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