Skip to content

zstd should use Py_XSETREF #134885

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

Closed
JelleZijlstra opened this issue May 29, 2025 · 3 comments
Closed

zstd should use Py_XSETREF #134885

JelleZijlstra opened this issue May 29, 2025 · 3 comments
Labels
3.14 bugs and security fixes 3.15 new features, bugs and security fixes extension-modules C modules in the Modules dir type-bug An unexpected behavior, bug, or error

Comments

@JelleZijlstra
Copy link
Member

JelleZijlstra commented May 29, 2025

Bug report

Bug description:

There is a theoretical crash path in the new zstd module that can be avoided with Py_XSETREF. PR incoming.

CPython versions tested on:

CPython main branch

Operating systems tested on:

No response

Linked PRs

@JelleZijlstra JelleZijlstra added the type-bug An unexpected behavior, bug, or error label May 29, 2025
JelleZijlstra added a commit to JelleZijlstra/cpython that referenced this issue May 29, 2025
@ZeroIntensity ZeroIntensity added the extension-modules C modules in the Modules dir label May 30, 2025
miss-islington pushed a commit to miss-islington/cpython that referenced this issue May 30, 2025
(cherry picked from commit 45c6c48)

Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
@ZeroIntensity ZeroIntensity added 3.14 bugs and security fixes 3.15 new features, bugs and security fixes labels May 30, 2025
@ZeroIntensity
Copy link
Member

cc @emmatyping (the fix is already merged, but I just thought you'd want to be aware of it)

encukou pushed a commit that referenced this issue May 30, 2025
(cherry picked from commit 45c6c48)

Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
@encukou
Copy link
Member

encukou commented May 30, 2025

Thank you for the fix!

@encukou encukou closed this as completed May 30, 2025
@emmatyping
Copy link
Member

Yes thank you! TIL about Py_XSETREF!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3.14 bugs and security fixes 3.15 new features, bugs and security fixes extension-modules C modules in the Modules dir type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

No branches or pull requests

4 participants