https://github.com/python/cpython/commit/ef06508f8ef1d2943b2fb1e310ab115b65e489a8 commit: ef06508f8ef1d2943b2fb1e310ab115b65e489a8 branch: main author: Bénédikt Tran <10796600+picn...@users.noreply.github.com> committer: kumaraditya303 <kumaradi...@python.org> date: 2025-03-23T19:56:03+05:30 summary:
gh-111178: fix UBSan failures for `TaskStepMethWrapper` (#131602) files: M Modules/_asynciomodule.c diff --git a/Modules/_asynciomodule.c b/Modules/_asynciomodule.c index 3c2622acdd1443..28234c4f902a34 100644 --- a/Modules/_asynciomodule.c +++ b/Modules/_asynciomodule.c @@ -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 */ }; _______________________________________________ Python-checkins mailing list -- python-checkins@python.org To unsubscribe send an email to python-checkins-le...@python.org https://mail.python.org/mailman3/lists/python-checkins.python.org/ Member address: arch...@mail-archive.com