FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

gh-155835: fix `digest_size` data race on BLAKE-2 objects by picnixz · Pull Request #155839 · python/cpython · GitHub

Repository navigation

Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension .c  (1) All 1 file type selected
Viewed files
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Unified
Split
Hide whitespace
Diff view
Unified
Split
Hide whitespace
Prev Previous commit
Next Next commit
Update blake2module.c
  • Loading branch information
picnixz authored Aug 15, 2026
commit 374bfeffcff7b5cb452907c4fb9aec6482fc7b31
3 changes: 1 addition & 2 deletions Modules/blake2module.c
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
Original file line number Diff line number Diff line change
Expand Up @@ -950,9 +950,8 @@ static PyObject *
py_blake2b_get_digest_size(PyObject *op, void *Py_UNUSED(closure))
{
Blake2Object *self = _Blake2Object_CAST(op);
Hacl_Hash_Blake2b_index info;
HASHLIB_ACQUIRE_LOCK(self);
info = hacl_get_blake2_info(self);
Hacl_Hash_Blake2b_index info = hacl_get_blake2_info(self);
HASHLIB_RELEASE_LOCK(self);
return PyLong_FromLong(info.digest_length);
}
Expand Down
Loading

Back | FazBrowse Home | New Git URL