-
-
Notifications
You must be signed in to change notification settings - Fork 32.1k
gh-111178: fix UBSan failures in Objects/exceptions.c
#128154
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
Changes from 1 commit
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
2683a25
fix UBSan failures for `PyBaseExceptionObject`
picnixz 3f1196b
fix UBSan failures for `PyStopIterationObject`
picnixz 1886b07
fix UBSan failures for `PySystemExitObject`
picnixz 3df93a5
fix UBSan failures for `PyImportErrorObject`
picnixz 96f97a5
fix UBSan failures for `PyOSErrorObject`
picnixz 09514a9
fix UBSan failures for `PyNameErrorObject`
picnixz 9d3c8b8
fix UBSan failures for `PyAttributeErrorObject`
picnixz 2640a34
fix UBSan failures for `PySyntaxErrorObject`
picnixz 150f34e
fix UBSan failures for `KeyError`
picnixz 11d9e31
remove un-necessary casts for `UnicodeError*`
picnixz 96430d9
remove un-necessary casts for `MemoryError`
picnixz 0437291
fix UBSan failures for `PyBaseExceptionGroupObject`
picnixz d17a9b4
unify naming for cast functions
picnixz 0d2434e
Merge remote-tracking branch 'upstream/main' into fix/ubsan/exception…
picnixz 793196d
fixup
picnixz 6abf1d8
fixup
picnixz 6c2ef08
align naming convention
picnixz 96f2d2d
remove redundant casts
picnixz 0cd116b
Merge branch 'main' into fix/ubsan/exceptions-111178
picnixz 248f195
Merge remote-tracking branch 'upstream/main' into fix/ubsan/exception…
picnixz e4daf11
remove un-necessary cast
picnixz 565edab
Merge branch 'main' into fix/ubsan/exceptions-111178
picnixz 122c914
Do not use `_` + capital letter in cast macros as it is also UB.
picnixz 7906e3b
Do not use `_` + capital letter in cast macros as it is also UB.
picnixz 8862b83
Merge branch 'main' into fix/ubsan/exceptions-111178
picnixz File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next
Next commit
fix UBSan failures for
PyBaseExceptionObject
- Loading branch information
commit 2683a2512c389bbc13f2854cd6982efd0d043da7
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
While you're touching these, (introducing conflicts with any in-flight PR, and adding yourself to
git blame
), could you switch to named initializers?Feel free to do it in a follow-up PR if you want to merge this one soon.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think I've said it in another PR, but Serhiy asked for a discussion on DPO (which never happened I think) in #127679 and you asked for it to be included in PEP-7 first so I left those out (especially for static types like these; I think I touched some heap types and internal ones never exposed, but I don't think I touched something that was publicly exposed).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For UBSan failures, I expect them to be merged whenever it's fine to merge them. I just have a bunch of branches that I ignore when I do
git branch
(otherwise I just have too many of them locally). And I don't mind solving conflictsThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For changing them all at once, it IMO should definitely go in PEP-7. In the usual case there's nothing wrong with the "old" syntax, and we generally avoid style-only changes.
In this case though, the style is a lot less readable than usual -- it's missing the comment column, and it has more items per line. Since you are touching this anyway (so backports will conflict, etc.), this is the time to clean it up.
I'll merge this PR; feel free to follow up.