-
-
Notifications
You must be signed in to change notification settings - Fork 31.9k
bpo-42412: Fix possible leaks and check arguments in PyType_FromModuleAndSpec() #23410
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bpo-42412: Fix possible leaks and check arguments in PyType_FromModuleAndSpec() #23410
Conversation
31ae0cf
to
9417256
Compare
…eAndSpec() * 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.
9417256
to
18494c4
Compare
Thanks @serhiy-storchaka for the PR 🌮🎉.. I'm working now to backport this PR to: 3.8, 3.9. |
Sorry @serhiy-storchaka, I had trouble checking out the |
…eAndSpec() (pythonGH-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. (cherry picked from commit 1db7639) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
GH-23440 is a backport of this pull request to the 3.8 branch. |
Thanks @serhiy-storchaka for the PR 🌮🎉.. I'm working now to backport this PR to: 3.9. |
…eAndSpec() (pythonGH-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. (cherry picked from commit 1db7639) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
GH-23442 is a backport of this pull request to the 3.9 branch. |
…eAndSpec() (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. (cherry picked from commit 1db7639) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
…eAndSpec() (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. (cherry picked from commit 1db7639) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
…eAndSpec() (pythonGH-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.
Py_tp_bases
is used more than once and if some some calls before settingtp_bases
are failed.bases
argument or thePy_tp_bases
slot is not a tuple.https://bugs.python.org/issue42412