◐ Shell
reader mode source ↗
Skip to content

gh-111178: fix UBSan failures in Modules/_functoolsmodule.c#129778

Merged
encukou merged 6 commits into
python:mainfrom
picnixz:fix/ubsan/functools-111178
Feb 21, 2025
Merged

gh-111178: fix UBSan failures in Modules/_functoolsmodule.c#129778
encukou merged 6 commits into
python:mainfrom
picnixz:fix/ubsan/functools-111178

Conversation

@picnixz

@picnixz picnixz commented Feb 7, 2025

Copy link
Copy Markdown
Member

This PR fixes the UBSan failures and addresses some minor cosmetic changes. PEP-7 changes were not applied since they could scramble the diff but other semantic changes affecting the signature of touched functions may have been done.

In addition, change `_PyPartialObject_CAST` to `partialobject_CAST`
as `_` + capital letter is UB.
@picnixz picnixz marked this pull request as ready for review February 8, 2025 09:39
@picnixz picnixz requested a review from rhettinger as a code owner February 8, 2025 09:39
@encukou encukou merged commit 4f07fd5 into python:main Feb 21, 2025
@picnixz picnixz deleted the fix/ubsan/functools-111178 branch February 21, 2025 14:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants