SIGN IN SIGN UP

[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>
M
Miss Islington (bot) committed
c23dd527e0ea8e26e44df5c44d0bd49fa08cb5ca
Parent: 6e5e4ed
Committed by GitHub <noreply@github.com> on 3/6/2026, 9:06:32 PM