Skip to content

[3.14] gh-145376: Fix crashes in md5module.c and hmacmodule.c (GH-145422)#145610

Merged
vstinner merged 2 commits intopython:3.14from
miss-islington:backport-c1d7768-3.14
Mar 6, 2026
Merged

[3.14] gh-145376: Fix crashes in md5module.c and hmacmodule.c (GH-145422)#145610
vstinner merged 2 commits intopython:3.14from
miss-islington:backport-c1d7768-3.14

Conversation

@miss-islington
Copy link
Contributor

@miss-islington miss-islington commented Mar 6, 2026

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 c1d7768)

Co-authored-by: Pieter Eendebak pieter.eendebak@gmail.com

…honGH-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 c1d7768)

Co-authored-by: Pieter Eendebak <pieter.eendebak@gmail.com>
@vstinner vstinner enabled auto-merge (squash) March 6, 2026 20:42
@vstinner vstinner merged commit c23dd52 into python:3.14 Mar 6, 2026
47 checks passed
@miss-islington miss-islington deleted the backport-c1d7768-3.14 branch March 6, 2026 21:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants