Skip to content
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
fix UBSan failures for TaskStepMethWrapper
  • Loading branch information
picnixz committed Mar 20, 2025
commit a4772eb276c334fd1ba0595bb8fcc0a81be4417d
5 changes: 3 additions & 2 deletions Modules/_asynciomodule.c
Original file line number Diff line number Diff line change
Expand Up @@ -2121,16 +2121,17 @@ 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);
}
Py_RETURN_NONE;
}

static PyGetSetDef TaskStepMethWrapper_getsetlist[] = {
{"__self__", (getter)TaskStepMethWrapper_get___self__, NULL, NULL},
{"__self__", TaskStepMethWrapper_get___self__, NULL, NULL},
{NULL} /* Sentinel */
};

Expand Down
Loading