]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-111178: fix UBSan failures in `Modules/_struct.c` (#129793)
authorBénédikt Tran <10796600+picnixz@users.noreply.github.com>
Sun, 23 Feb 2025 10:34:11 +0000 (11:34 +0100)
committerGitHub <noreply@github.com>
Sun, 23 Feb 2025 10:34:11 +0000 (10:34 +0000)
commit1e4a4344af4f5fdc7157b195c7d333d088540035
treeb27f9e3a81fa03a09a419b6458ca9da71af1cee3
parentb8c313a41c411331c603bbda28048b2a3f4a2ab4
gh-111178: fix UBSan failures in `Modules/_struct.c` (#129793)

Fix some UBSan failures for `PyStructObject` and `unpackiterobject`.

We also perform some cleanup by suppressing unused return values and renaming the
unused parameter in `METH_NOARGS` and getter methods to `dummy` and `closure`
respectively for semantic purposes.
Modules/_struct.c