]> granicus.if.org Git - python/commit
bpo-35961: Fix a crash in slice_richcompare() (GH-11830)
authorVictor Stinner <vstinner@redhat.com>
Wed, 13 Feb 2019 11:31:56 +0000 (12:31 +0100)
committerGitHub <noreply@github.com>
Wed, 13 Feb 2019 11:31:56 +0000 (12:31 +0100)
commitdcb68f47f74b0cc8a1896d4a4c5a6b83c0bbeeae
treea59fd0f3445f533933c444eba052adefbeb7cf80
parent5680f6546dcda550ad70eefa0a5ebf1375303307
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).
Misc/NEWS.d/next/Core and Builtins/2019-02-12-20-16-34.bpo-35961.7f7Sne.rst [new file with mode: 0644]
Objects/sliceobject.c