]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-38610: Fix possible crashes in several list methods (GH-17022)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 30 Dec 2019 19:51:06 +0000 (11:51 -0800)
committerGitHub <noreply@github.com>
Mon, 30 Dec 2019 19:51:06 +0000 (11:51 -0800)
commitfcaf14cd9179bb48850f8f81ce8d5cee28129745
treee8281cbb027c504902c686e84d818fd9a1f6047a
parentcbfafa3e3625dae96ce392c88c793f8af55167bf
bpo-38610: Fix possible crashes in several list methods (GH-17022)

Hold strong references to list elements while calling PyObject_RichCompareBool().
(cherry picked from commit d9e561d23d994e3ed15f4fcbd7ee5c8fe50f190b)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
Lib/test/test_list.py
Misc/NEWS.d/next/Core and Builtins/2019-10-31-14-30-39.bpo-38610.fHdVMS.rst [new file with mode: 0644]
Objects/listobject.c