mirror of
https://github.com/python/cpython.git
synced 2025-07-07 19:35:27 +00:00
gh-111178: fix UBSan failures for TaskStepMethWrapper
(#131602)
This commit is contained in:
parent
5fc889ffbf
commit
ef06508f8e
1 changed files with 3 additions and 2 deletions
|
@ -2121,8 +2121,9 @@ TaskStepMethWrapper_traverse(PyObject *op,
|
|||
}
|
||||
|
||||
static PyObject *
|
||||
TaskStepMethWrapper_get___self__(TaskStepMethWrapper *o, void *Py_UNUSED(ignored))
|
||||
TaskStepMethWrapper_get___self__(PyObject *op, void *Py_UNUSED(closure))
|
||||
{
|
||||
TaskStepMethWrapper *o = (TaskStepMethWrapper*)op;
|
||||
if (o->sw_task) {
|
||||
return Py_NewRef(o->sw_task);
|
||||
}
|
||||
|
@ -2130,7 +2131,7 @@ TaskStepMethWrapper_get___self__(TaskStepMethWrapper *o, void *Py_UNUSED(ignored
|
|||
}
|
||||
|
||||
static PyGetSetDef TaskStepMethWrapper_getsetlist[] = {
|
||||
{"__self__", (getter)TaskStepMethWrapper_get___self__, NULL, NULL},
|
||||
{"__self__", TaskStepMethWrapper_get___self__, NULL, NULL},
|
||||
{NULL} /* Sentinel */
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue