8000 [3.12] gh-121791: Check for `NULL` in `MethodDescriptor2_new` in `_testcapi` (GH-121792) by miss-islington · Pull Request #121840 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

[3.12] gh-121791: Check for NULL in MethodDescriptor2_new in _testcapi (GH-121792) #121840

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
Jul 16, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
gh-121791: Check for NULL in MethodDescriptor2_new in _testcapi (
…GH-121792)

(cherry picked from commit 8b6d475)

Co-authored-by: sobolevn <mail@sobolevn.me>
  • Loading branch information
sobolevn authored and miss-islington committed Jul 16, 2024
commit 45fe3871f20e290e895fc101df8fb47b667a7fac
3 changes: 3 additions & 0 deletions Modules/_testcapi/vectorcall.c
Original file line number Diff line number Diff line change
Expand Up @@ -349,6 +349,9 @@ static PyObject *
MethodDescriptor2_new(PyTypeObject* type, PyObject* args, PyObject *kw)
{
MethodDescriptor2Object *op = PyObject_New(MethodDescriptor2Object, type);
if (op == NULL) {
return NULL;
}
op->base.vectorcall = NULL;
op->vectorcall = MethodDescriptor_vectorcall;
return (PyObject *)op;
Expand Down
Loading
0