]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-38588: Fix possible crashes in dict and list when calling PyObject_RichCompareBoo...
authorDong-hee Na <donghee.na92@gmail.com>
Tue, 31 Dec 2019 01:04:22 +0000 (10:04 +0900)
committerPablo Galindo <Pablogsal@gmail.com>
Tue, 31 Dec 2019 01:04:22 +0000 (01:04 +0000)
commit2d5bf568eaa5059402ccce9ba5a366986ba27c8a
tree04fe688caaa82e948cc4ff315fe82453f3445b6e
parentee9ff05ec22ecd47dbffdd361967ccd55963dad2
bpo-38588: Fix possible crashes in dict and list when calling PyObject_RichCompareBool (GH-17734)

Take strong references before calling PyObject_RichCompareBool to protect against the case
where the object dies during the call.
Lib/test/test_dict.py
Lib/test/test_list.py
Misc/NEWS.d/next/Core and Builtins/2019-12-29-19-13-54.bpo-38588.pgXnNS.rst [new file with mode: 0644]
Objects/dictobject.c
Objects/listobject.c