Skip to content

[3.8] bpo-42412: Fix possible leaks and check arguments in PyType_FromModuleAndSpec() (GH-23410) #23440

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

Merged
merged 1 commit into from
Nov 21, 2020

Conversation

miss-islington
Copy link
Contributor

@miss-islington miss-islington commented Nov 21, 2020

  • 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

https://bugs.python.org/issue42412

…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>
@miss-islington
Copy link
Contributor Author

@serhiy-storchaka: Status check is done, and it's a success ✅ .

@miss-islington miss-islington merged commit 648a32b into python:3.8 Nov 21, 2020
@miss-islington miss-islington deleted the backport-1db7639-3.8 branch November 21, 2020 10:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
skip news type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants