8000 gh-111178: fix UBSan failures in `Modules/{blake2,md5,sha1,sha2,sha3}module.c` by picnixz · Pull Request #128248 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-111178: fix UBSan failures in Modules/{blake2,md5,sha1,sha2,sha3}module.c #128248

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 14 commits into from
Jan 27, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
suppress unused parameters in blake2module.c
  • Loading branch information
picnixz committed Dec 25, 2024
commit 568bff8f836ac2882ada8731f44995b8685a0701
6 changes: 3 additions & 3 deletions Modules/blake2module.c
Original file line number Diff line number Diff line change
Expand Up @@ -830,7 +830,7 @@ static PyMethodDef py_blake2b_methods[] = {


static PyObject *
py_blake2b_get_name(PyObject *op, void *closure)
py_blake2b_get_name(PyObject *op, void *Py_UNUSED(closure))
{
Blake2Object *self = _Blake2Object_CAST(op);
return PyUnicode_FromString(is_blake2b(self->impl) ? "blake2b" : "blake2s");
Expand All @@ -839,7 +839,7 @@ py_blake2b_get_name(PyObject *op, void *closure)


static PyObject *
py_blake2b_get_block_size(PyObject *op, void *closure)
py_blake2b_get_block_size(PyObject *op, void *Py_UNUSED(closure))
{
Blake2Object *self = _Blake2Object_CAST(op);
return PyLong_FromLong(is_blake2b(self->impl) ? HACL_HASH_BLAKE2B_BLOCK_BYTES : HACL_HASH_BLAKE2S_BLOCK_BYTES);
Expand All @@ -848,7 +848,7 @@ py_blake2b_get_block_size(PyObject *op, void *closure)


static PyObject *
py_blake2b_get_digest_size(PyObject *op, void *closure)
py_blake2b_get_digest_size(PyObject *op, void *Py_UNUSED(closure))
{
Blake2Object *self = _Blake2Object_CAST(op);
switch (self->impl) {
Expand Down
Loading
0