8000 gh-111178: fix UBSan failures in `Modules/selectmodule.c` by picnixz · Pull Request #129792 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-111178: fix UBSan failures in Modules/selectmodule.c #129792

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 13 commits into from
Feb 24, 2025
Merged
Prev Previous commit
Next Next commit
fix UBSan failures for kqueue_tracking_after_fork
  • Loading branch information
picnixz committed Feb 6, 2025
commit bfbed25d0444461226e2a8cfb89ff5bc855163aa
6 changes: 3 additions & 3 deletions Modules/selectmodule.c
Original file line number Diff line number Diff line change
Expand Up @@ -1984,8 +1984,8 @@ kqueue_queue_err_closed(void)
return NULL;
}

static PyObject*
kqueue_tracking_after_fork(PyObject *module) {
static PyObject *
kqueue_tracking_after_fork(PyObject *module, PyObject *Py_UNUSED(args)) {
_selectstate *state = get_select_state(module);
_kqueue_list_item *item = state->kqueue_open_list;
state->kqueue_open_list = NULL;
Expand All @@ -2003,7 +2003,7 @@ kqueue_tracking_after_fork(PyObject *module) {
}

static PyMethodDef kqueue_tracking_after_fork_def = {
"kqueue_tracking_after_fork", (PyCFunction)kqueue_tracking_after_fork,
"kqueue_tracking_after_fork", kqueue_tracking_after_fork,
METH_NOARGS, "Invalidate open select.kqueue objects after fork."
};

Expand Down
0