]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.14] gh-145376: Fix crashes in `md5module.c` and `hmacmodule.c` (GH-145422) (#145610)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 6 Mar 2026 21:06:32 +0000 (22:06 +0100)
committerGitHub <noreply@github.com>
Fri, 6 Mar 2026 21:06:32 +0000 (21:06 +0000)
commitc23dd527e0ea8e26e44df5c44d0bd49fa08cb5ca
tree6162f0d84d2f66d7baa0cd0f510594a31569491b
parent6e5e4edfd21b86df16648b82bd0962e42cfc2994
[3.14] gh-145376: Fix crashes in `md5module.c` and `hmacmodule.c` (GH-145422) (#145610)

gh-145376: Fix crashes in `md5module.c` and `hmacmodule.c` (GH-145422)

Fix a possible NULL pointer dereference in `md5module.c` and a double-free in `hmacmodule.c`.
Those crashes only occur in error paths taken when the interpreter fails to allocate memory.
(cherry picked from commit c1d77683213c400fca144692654845e6f5418981)

Co-authored-by: Pieter Eendebak <pieter.eendebak@gmail.com>
Misc/NEWS.d/next/Library/2026-03-02-19-41-39.gh-issue-145376.OOzSOh.rst [new file with mode: 0644]
Modules/hmacmodule.c
Modules/md5module.c