]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-145376: Fix crashes in `md5module.c` and `hmacmodule.c` (#145422)
authorPieter Eendebak <pieter.eendebak@gmail.com>
Fri, 6 Mar 2026 20:00:06 +0000 (21:00 +0100)
committerGitHub <noreply@github.com>
Fri, 6 Mar 2026 20:00:06 +0000 (20:00 +0000)
commitc1d77683213c400fca144692654845e6f5418981
tree4143ab936b914c59c339b2c048c3822ba52899da
parent1d091a336e60b703a7d7ae4124f652eabe144f4e
gh-145376: Fix crashes in `md5module.c` and `hmacmodule.c` (#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.
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