| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
… re-attaching the thread state (pythonGH-159817) When `EVP_DigestUpdate()` failed, `_hashlib_HASH_hash()` raised a Python exception, however, `_hashlib.HASH.update()` and the `_hashlib.HASH` constructor release the GIL before calling it when the data is larger than `HASHLIB_GIL_MINSIZE` bytes. `_hashlib_HASH_hash()` now only returns an error status and its callers raise the exception once they have re-attached the thread state. (cherry picked from commit 6fa2d64) Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
| Back | FazBrowse Home | New Git URL |
When EVP_DigestUpdate() failed, _hashlib_HASH_hash() raised a Python exception, however, _hashlib.HASH.update() and the _hashlib.HASH constructor release the GIL before calling it when the data is larger than HASHLIB_GIL_MINSIZE bytes.
_hashlib_HASH_hash() now only returns an error status and its callers raise the exception once they have re-attached the thread state.
(cherry picked from commit 6fa2d64)