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

Skip to content

gh-111178: fix UBSan failures for TaskStepMethWrapper #131602

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
Mar 23, 2025
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
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
0