]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-42412: Fix possible leaks and check arguments in PyType_FromModuleAndSpec() ...
authorSerhiy Storchaka <storchaka@gmail.com>
Sat, 21 Nov 2020 10:02:53 +0000 (12:02 +0200)
committerGitHub <noreply@github.com>
Sat, 21 Nov 2020 10:02:53 +0000 (12:02 +0200)
commit1db76394ea79030aa4ed5349c950f6c6da51450f
tree1c983ea426540a616afb1dbca1d8c737c3ad63b3
parent01a202ab6b0ded546e47073db6498262086c52e9
bpo-42412: Fix possible leaks and check arguments in PyType_FromModuleAndSpec() (GH-23410)

* There were leaks if Py_tp_bases is used more than once or if some call is
  failed before setting tp_bases.
* There was a crash if the bases argument or the Py_tp_bases slot is not a tuple.
* The documentation was not accurate.
Doc/c-api/type.rst
Objects/typeobject.c