-
-
Notifications
You must be signed in to change notification settings - Fork 32.1k
gh-126024: fix UBSan failure in unicodeobject.c:find_first_nonascii
#127566
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
gh-126024: fix UBSan failure in unicodeobject.c:find_first_nonascii
#127566
Conversation
unicodeobject.c
unicodeobject.c:find_first_nonascii
Does this need backports to 3.12 and 3.13? |
Looks like the relevant code is not in 3.13 or earlier, so I guess not. |
Yup, it's only a recent code (that's why I did 2 PRs). |
Hum, we have a failure: https://github.com/python/cpython/actions/runs/12200589926/job/34037087571. I'm not sure what happened :( |
Ok, let's revert it for now while we investigate. |
…irst_nonascii` (pythonGH-127566)" Some hypothesis tests are failing. This reverts commit 36c6178.
I'll investigate now. |
Hmm... from my limited testing, the failure looks like it also reproduces main before the PR merged. |
(I also deduced it; I commented the revert PR). Sorry for the false alarm. But now we have another issue (for which I'll open a new ticket). |
Not sure we can do anything except wrapping the call in a function. Adding an allow list may seem too hard since the line would change everytime we change the code. Or we can just forget about the optimized unaligned load.