# 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_ <!-- gh-linked-prs --> ### Linked PRs * gh-134886 * gh-134922 <!-- /gh-linked-prs -->
Activity
pythongh-134885: zstd: Use Py_XSETREF
gh-134885: zstd: Use Py_XSETREF (GH-134886)
pythongh-134885: zstd: Use Py_XSETREF (pythonGH-134886)
ZeroIntensity commentedon May 30, 2025
cc @emmatyping (the fix is already merged, but I just thought you'd want to be aware of it)
[3.14] gh-134885: zstd: Use Py_XSETREF (GH-134886) (GH-134922)
encukou commentedon May 30, 2025
Thank you for the fix!
emmatyping commentedon May 30, 2025
Yes thank you! TIL about
Py_XSETREF!pythongh-134885: zstd: Use Py_XSETREF (pythonGH-134886)
pythongh-134885: zstd: Use Py_XSETREF (pythonGH-134886)
pythongh-134885: zstd: Use Py_XSETREF (pythonGH-134886)