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 changed the title gh-111178: fix UBSan failures in $where gh-111178: fix UBSan failures in Modules/_collectionsmodule.c Feb 7, 2025
@picnixz picnixz marked this pull request as ready for review February 7, 2025 18:06
@picnixz picnixz requested a review from rhettinger as a code owner February 7, 2025 18:06
@picnixz
Copy link
Member Author

picnixz commented Feb 7, 2025

Ah I'm sorry I put this one as ready for review but I learned that _ + capital letter was also UB (#128248 (comment)). Even though _ + lowercase letter is not UB (hopefully), this one can be reviewed. However, for consistency, I'll also remove the _ tomorrow along with the other PRs.

@picnixz picnixz enabled auto-merge (squash) February 17, 2025 11:50
@picnixz picnixz merged commit f55d0b6 into python:main Feb 17, 2025
41 checks passed
@picnixz picnixz deleted the fix/ubsan/collections-111178 branch February 17, 2025 12:20
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.

3 participants