The Wayback Machine - https://web.archive.org/web/20250610023558/https://github.com/python/cpython/pull/134048
Skip to content

gh-133157: remove usage of _Py_NO_SANITIZE_UNDEFINED in Parser/pegen.c #134048

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jun 10, 2025

Conversation

picnixz
Copy link
Member

@picnixz picnixz commented May 15, 2025

We remove undefined behaviors by adding more "overloads" functions. I've added some small checks to detect possible future undefined behaviors.

@picnixz
Copy link
Member Author

picnixz commented Jun 9, 2025

@pablogsal friendly ping

@pablogsal pablogsal added needs backport to 3.13 bugs and security fixes needs backport to 3.14 bugs and security fixes labels Jun 10, 2025
@pablogsal
Copy link
Member

LGTM. Great work on factoring this into a macro and the check in the generator 👌

@pablogsal pablogsal merged commit 754e7c9 into python:main Jun 10, 2025
54 checks passed
@miss-islington-app
Copy link

Thanks @picnixz for the PR, and @pablogsal for merging it 🌮🎉.. I'm working now to backport this PR to: 3.13, 3.14.
🐍🍒⛏🤖 I'm not a witch! I'm not a witch!

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Jun 10, 2025
…er/pegen.c` (pythonGH-134048)

(cherry picked from commit 754e7c9b5187fcad22acf7555479603f173a4a09)

Co-authored-by: Bénédikt Tran <[email protected]>
@miss-islington-app
Copy link

Sorry, @picnixz and @pablogsal, I could not cleanly backport this to 3.13 due to a conflict.
Please backport using cherry_picker on command line.

cherry_picker 754e7c9b5187fcad22acf7555479603f173a4a09 3.13

@bedevere-app
Copy link

bedevere-app bot commented Jun 10, 2025

GH-135320 is a backport of this pull request to the 3.14 branch.

@bedevere-app bedevere-app bot removed the needs backport to 3.14 bugs and security fixes label Jun 10, 2025
@pablogsal
Copy link
Member

Can you do the backport to 3.13?

@picnixz
Copy link
Member Author

picnixz commented Jun 10, 2025

I'll do the backport tomorrow! (I'm going to sleep in a few minutes :'))

@picnixz picnixz self-assigned this Jun 10, 2025
pablogsal pushed a commit that referenced this pull request Jun 10, 2025
…ser/pegen.c` (GH-134048) (#135320)

gh-133157: remove usage of `_Py_NO_SANITIZE_UNDEFINED` in `Parser/pegen.c` (GH-134048)
(cherry picked from commit 754e7c9)

Co-authored-by: Bénédikt Tran <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants