-
-
Notifications
You must be signed in to change notification settings - Fork 30.9k
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-111178: fix USAN failures for partialobject
#124733
gh-111178: fix USAN failures for partialobject
#124733
Conversation
8327ef1
to
080d875
Compare
080d875
to
287594e
Compare
What's the status of this PR? Why is it a draft? |
Forgotten :D
I wanted to add the suppression before but since it wouldn't have worked anyway, I can mark it as ready (I'll just check that the warnings for partialobjects indeed disappeared). |
@vstinner Do you want me to add some |
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.
If you want to fix UBSan issues for partial(), you should patch more methods like: partial_dealloc, partial_repr, partial_traverse, etc.
I have mixed feelings about these macros :-) You can add a macro which just do the cast and don't check the type, or don't add the macro. As you want. |
Oups, I forgot to do it. I think I only checked the warnings thinking that the rest would be reported. I'll do it tomorrow (hence reconverting into a draft). |
I haven't touched the utilities functions since they are not used as callbacks and shouldn't lead to undefined behaviours (e.g., |
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.
LGTM
Merged, thanks. |
Before reviewing this one, I'll add a suppression file with all the incriminating functions. And whenever I make a new PR for fixing USAN failures, I'll just remove the corresponding entries so that we can really check the changes by running the build bot.