| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
|
I'd prefer if this could be broken in two PRs: one for the refactoring, and one for the error branch fixes. |
Sorry, something went wrong.
Sure! I'll split them into two tomorrow. |
Sorry, something went wrong.
|
Thanks @picnixz for the PR 🌮🎉.. I'm working now to backport this PR to: 3.12, 3.13. |
Sorry, something went wrong.
|
Sorry, @picnixz, I could not cleanly backport this to 3.13 due to a conflict. cherry_picker 097846502b7f33cb327d512e2a396acf4f4de46e 3.13 |
Sorry, something went wrong.
|
Sorry, @picnixz, I could not cleanly backport this to 3.12 due to a conflict. cherry_picker 097846502b7f33cb327d512e2a396acf4f4de46e 3.12 |
Sorry, something went wrong.
|
Arf, this one won't backport cleanly because it contains some references to the UBSan failures fixes. |
Sorry, something went wrong.
- Correctly handle `NULL` values returned by `EVP_MD_CTX_md`. - Correctly free resources in error branches. - Consistently suppress `_setException()` return value when needed. - Collapse `_setException() + return NULL` into a single statement.
|
GH-130783 is a backport of this pull request to the 3.12 branch. |
Sorry, something went wrong.
|
GH-130783 is a backport of this pull request to the 3.12 branch. |
Sorry, something went wrong.
|
GH-130783 is a backport of this pull request to the 3.12 branch. |
Sorry, something went wrong.
- Correctly handle `NULL` values returned by `EVP_MD_CTX_md`. - Correctly free resources in error branches. - Consistently suppress `_setException()` return value when needed. - Collapse `_setException() + return NULL` into a single statement.
|
GH-130784 is a backport of this pull request to the 3.13 branch. |
Sorry, something went wrong.
gh-127667: fix memory leaks in `hashlib` (GH-127668) - Correctly handle `NULL` values returned by `EVP_MD_CTX_md`. - Correctly free resources in error branches. - Consistently suppress `_setException()` return value when needed. - Collapse `_setException() + return NULL` into a single statement. (cherry-picked from commit 0978465)
gh-127667: fix memory leaks in `hashlib` (GH-127668) - Correctly handle `NULL` values returned by `EVP_MD_CTX_md`. - Correctly free resources in error branches. - Consistently suppress `_setException()` return value when needed. - Collapse `_setException() + return NULL` into a single statement. (cherry-picked from commit 0978465)
| Back | FazBrowse Home | New Git URL |
I took the liberty of changing how exceptions are being set in hashlib because _setException(PyExc_ValueError, NULL); is honestly confusing (namely) that "NULL" stands for a default message when the OpenSSL error message cannot be retrieved). (this will be in a follow-up PR)
In this PR we: