8000 gh-111178: fix USAN failures for `partialobject` by picnixz · Pull Request #124733 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-111178: fix USAN failures for partialobject #124733

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
Changes from 1 commit
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
Next Next commit
partial_vectorcall
  • Loading branch information
picnixz committed Sep 29, 2024
commit cdc3d9ee5becddabc855e8a1d11c5e86d3b09fbc
5 changes: 3 additions & 2 deletions Modules/_functoolsmodule.c
Original file line number Diff line number Diff line change
Expand Up @@ -365,9 +365,10 @@ partial_vectorcall_fallback(PyThreadState *tstate, partialobject *pto,
}

static PyObject *
partial_vectorcall(partialobject *pto, PyObject *const *args,
partial_vectorcall(PyObject *self, PyObject *const *args,
size_t nargsf, PyObject *kwnames)
{
partialobject *pto = (partialobject *)(self);
PyThreadState *tstate = _PyThreadState_GET();
Py_ssize_t nargs = PyVectorcall_NARGS(nargsf);

Expand Down Expand Up @@ -468,7 +469,7 @@ partial_setvectorcall(partialobject *pto)
* but that is unlikely (why use partial without arguments?),
* so we don't optimize that */
else {
pto->vectorcall = (vectorcallfunc)partial_vectorcall;
pto->vectorcall = partial_vectorcall;
}
}

Expand Down
0