diff options
author | Victor Stinner <vstinner@redhat.com> | 2019-02-13 11:31:56 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-02-13 11:31:56 (GMT) |
commit | dcb68f47f74b0cc8a1896d4a4c5a6b83c0bbeeae (patch) | |
tree | a59fd0f3445f533933c444eba052adefbeb7cf80 /Misc | |
parent | 5680f6546dcda550ad70eefa0a5ebf1375303307 (diff) | |
download | cpython-dcb68f47f74b0cc8a1896d4a4c5a6b83c0bbeeae.zip cpython-dcb68f47f74b0cc8a1896d4a4c5a6b83c0bbeeae.tar.gz cpython-dcb68f47f74b0cc8a1896d4a4c5a6b83c0bbeeae.tar.bz2 |
bpo-35961: Fix a crash in slice_richcompare() (GH-11830)
Fix a crash in slice_richcompare(): use strong references rather than
stolen references for the two temporary internal tuples.
The crash (or assertion error) occurred if a garbage collection
occurred during slice_richcompare(), especially while calling
PyObject_RichCompare(t1, t2, op).
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS.d/next/Core and Builtins/2019-02-12-20-16-34.bpo-35961.7f7Sne.rst | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Core and Builtins/2019-02-12-20-16-34.bpo-35961.7f7Sne.rst b/Misc/NEWS.d/next/Core and Builtins/2019-02-12-20-16-34.bpo-35961.7f7Sne.rst new file mode 100644 index 0000000..943aaa2 --- /dev/null +++ b/Misc/NEWS.d/next/Core and Builtins/2019-02-12-20-16-34.bpo-35961.7f7Sne.rst @@ -0,0 +1,2 @@ +Fix a crash in slice_richcompare(): use strong references rather than stolen +references for the two temporary internal tuples. |