Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

gh-134885: zstd: Use Py_XSETREF#134886

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
encukou merged 2 commits intopython:mainfromJelleZijlstra:zstd-setref
May 30, 2025
Merged

Conversation

JelleZijlstra
Copy link
Member

@JelleZijlstraJelleZijlstra commentedMay 29, 2025
edited by bedevere-appbot
Loading

As the Py_SETREF macro explains, the previous code is theoretically vulnerable to a bug where if the destructor for the previous value ofmod_state->CParameter_type accesses this module, it may see a garbage value there.

@JelleZijlstraJelleZijlstra changed the titlegh-135885: zstd: Use Py_XSETREFgh-134885: zstd: Use Py_XSETREFMay 29, 2025
@@ -1,6 +1,5 @@
importctypes
importunittest
importwarnings
Copy link
Contributor

Choose a reason for hiding this comment

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

Py_XSETREF() LGTM, but this ctypes correction looks like an accident.

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

CI was broken on main (the import is unused), and since it's a small change I figured I might as well include it

neonene reacted with thumbs up emoji
Copy link
Contributor

Choose a reason for hiding this comment

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

It seems like the change is excluded from this PR sincef49a07b already applied it, which is good for 3.14.

encukou reacted with thumbs up emoji
@encukouencukou merged commit45c6c48 intopython:mainMay 30, 2025
39 checks passed
@encukouencukou added the needs backport to 3.14bugs and security fixes labelMay 30, 2025
@miss-islington-app
Copy link

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

miss-islington pushed a commit to miss-islington/cpython that referenced this pull requestMay 30, 2025
(cherry picked from commit45c6c48)Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
@bedevere-app
Copy link

GH-134922 is a backport of this pull request to the3.14 branch.

@bedevere-appbedevere-appbot removed the needs backport to 3.14bugs and security fixes labelMay 30, 2025
encukou pushed a commit that referenced this pull requestMay 30, 2025
(cherry picked from commit45c6c48)Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
@JelleZijlstraJelleZijlstra deleted the zstd-setref branchMay 30, 2025 13:43
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@neoneneneoneneneonene left review comments

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

3 participants
@JelleZijlstra@neonene@encukou

[8]ページ先頭

©2009-2025 Movatter.jp