]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-111178: fix UBSan failures in `Objects/exceptions.c` (GH-128154)
authorBénédikt Tran <10796600+picnixz@users.noreply.github.com>
Mon, 17 Feb 2025 10:03:16 +0000 (11:03 +0100)
committerGitHub <noreply@github.com>
Mon, 17 Feb 2025 10:03:16 +0000 (11:03 +0100)
commit7ea8927ec72e9c4c50dfc922704035a5edb51661
tree9ba7bcbfad0d9fb76477175c208c0176624f9072
parent395335d0ff292a15e26575e06f603304d9161ee1
gh-111178: fix UBSan failures in `Objects/exceptions.c` (GH-128154)

Fix UBSan failures for `PyBaseExceptionObject`, `PyStopIterationObject`, `PySystemExitObject`, `PyImportErrorObject`, `PyOSErrorObject`,  `PyNameErrorObject`,  `PyAttributeErrorObject`, `PySyntaxErrorObject`,  `KeyError`,  `UnicodeError*`, `PyBaseExceptionGroupObject`

Remove redundant casts

Align the naming convention `Py[...]_CAST(op)` where only an assert-only type check is performed.
Objects/exceptions.c