GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||
GeezerVison is showing github.com — gh-111178: fix USAN failures for `partialobject` by picnixz · Pull Request #124733 · python/cpython Conversation
|
|
What's the status of this PR? Why is it a draft? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
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). |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@vstinner Do you want me to add some |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem 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.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
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. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
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). |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
I haven't touched the utilities functions since they are not used as callbacks and shouldn't lead to undefined behaviours (e.g., |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Merged, thanks. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
) Fix UBSan failures for `keyobject`, `lru_list_elem`, `lru_cache_object`. Suppress unused return values. Change `_PyPartialObject_CAST` (from #124733) to `partialobject_CAST` for consistency with the current style for these macros
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.