diff options
author | Yannick Jadoul <yannick.jadoul@belgacom.net> | 2020-10-12 21:06:19 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-12 21:06:19 (GMT) |
commit | 04b8631d84a870dda456ef86039c1baf34d08500 (patch) | |
tree | a452d703f712dcf9baae2c67b5439886da6adf40 /Misc | |
parent | 24a54c0bd48d9f6f1a1289ca57afb381bc4b280e (diff) | |
download | cpython-04b8631d84a870dda456ef86039c1baf34d08500.zip cpython-04b8631d84a870dda456ef86039c1baf34d08500.tar.gz cpython-04b8631d84a870dda456ef86039c1baf34d08500.tar.bz2 |
bpo-42015: Reorder dereferencing calls in meth_dealloc, to make sure m_self is kept alive long enough (GH-22670)
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS.d/next/C API/2020-10-12-20-13-58.bpo-42015.X4H2_V.rst | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/C API/2020-10-12-20-13-58.bpo-42015.X4H2_V.rst b/Misc/NEWS.d/next/C API/2020-10-12-20-13-58.bpo-42015.X4H2_V.rst new file mode 100644 index 0000000..d77619f --- /dev/null +++ b/Misc/NEWS.d/next/C API/2020-10-12-20-13-58.bpo-42015.X4H2_V.rst @@ -0,0 +1,3 @@ +Fix potential crash in deallocating method objects when dynamically +allocated `PyMethodDef`'s lifetime is managed through the ``self`` +argument of a `PyCFunction`. |