KEMBAR78
gh-111178: fix UBSan failures in `Objects/typevarobject.c` by picnixz · Pull Request #129800 · python/cpython · GitHub
Skip to content

Conversation

@picnixz
Copy link
Member

@picnixz picnixz commented Feb 7, 2025

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.

@picnixz picnixz marked this pull request as ready for review February 7, 2025 18:09
@picnixz picnixz requested a review from markshannon as a code owner February 7, 2025 18:09
@encukou encukou merged commit ecde940 into python:main Feb 25, 2025
45 checks passed
@picnixz picnixz deleted the fix/ubsan/typevarobject-111178 branch February 25, 2025 12:14
seehwan pushed a commit to seehwan/cpython that referenced this pull request Apr 16, 2025
…honGH-129800)

Fix UBSan failures for `typealiasobject`, `paramspecobject`, `typevarobject`, `typevartupleobject`, `paramspecattrobject`

Use _PyCFunction_CAST macros

Use macro for `constevaluatorobject` casts
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