GeezerVison is showing github.com — gh-111178: fix UBSan failures in `Modules/{blake2,md5,sha1,sha2,sha3}module.c` by picnixz · Pull Request #128248 · python/cpython
Conversation
picnixz
commented
Dec 25, 2024
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
Effective commits
- fix UBSan failures in
blake2module.c
- fix UBSan failures in
md5module.c
- fix UBSan failures in
sha1module.c
- fix UBSan failures in
sha2module.c
- fix UBSan failures in
sha3module.c
Cosmetics
- suppress unused return values
- remove redundant casts in constructors
- suppress unused parameters in
{md5,sha*,blake2}module.c
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
picnixz
changed the title
gh-111178: fix UBSan failures in Modules/{sha1,sha2,sh3,md5}module.c
gh-111178: fix UBSan failures in Modules/{blake2,md5,sha1,sha2,sha3}module.c
Dec 25, 2024
encukou
commented
Jan 27, 2025
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
|
One nitpick to keep in mind for the future: C standard reserves identifiers that start with underscore and capital letter, so e.g. defining _Blake2Object_CAST is technically undefined behaviour.
(Same with _Py*, of course. It'd be nicer to not add new ones in addition to _Py.)
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
Oh... I was not aware of this. All my branches use an underscore so that the macro is really thought as being private. I can update the PRs locally as they are not yet pushed if you think it's something we should do.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This was referenced Feb 7, 2025
This was referenced Feb 7, 2025
Reviewers
gpshead
Awaiting requested review from gpshead
gpshead is a code owner
tiran
Awaiting requested review from tiran
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
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.
|