]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-111178: fix UBSan failures in `Modules/selectmodule.c` (GH-129792)
authorBénédikt Tran <10796600+picnixz@users.noreply.github.com>
Mon, 24 Feb 2025 12:38:18 +0000 (13:38 +0100)
committerGitHub <noreply@github.com>
Mon, 24 Feb 2025 12:38:18 +0000 (13:38 +0100)
commit73bbaf33ae1018f2f90480c4185717f3a49bf857
treeb2f0ccc034e173a296a9a15894d212e96a0f7cb1
parentde13293d264f1cec439d87fc477d0ccf05793a1a
gh-111178: fix UBSan failures in `Modules/selectmodule.c` (GH-129792)

Fix some UBSan failures for `pollObject`, `devpollObject`, `pyEpoll_Object` as well as
for `kqueue_event_Object`, `kqueue_queue_Object` and `kqueue_tracking_after_fork`.

Suppress unused return values.

Rename the unused parameter in `METH_NOARGS` and getter/setter methods to
`dummy` and `closure` respectively for semantic purposes.

Explicitly declare `_select_exec` as a `static` function.
Modules/selectmodule.c