FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

[3.13] gh-145376: Fix crashes in md5module.c (GH-145422) by eendebakpt · Pull Request #145611 · python/cpython · GitHub

Repository navigation

[3.13] gh-145376: Fix crashes in md5module.c (GH-145422) - #145611

Merged
vstinner merged 3 commits into
python:3.13from
eendebakpt:md5module_null_313
Mar 6, 2026
Merged

vstinner merged 3 commits into
python:3.13from
eendebakpt:md5module_null_313

Conversation

eendebakpt commented Mar 6, 2026 •
edited by bedevere-app Bot
Loading

Copy link
Copy Markdown
Contributor

Fix a possible NULL pointer dereference in md5module.c.
This can only occur in error paths taken when the interpreter fails to allocate memory.

(cherry-picked from c1d7768)

Fix a possible NULL pointer dereference in `md5module.c`.
This can only occur in error paths taken when the interpreter fails to allocate memory.

(cherry-picked from c1d7768)
Comment thread Modules/md5module.c Outdated
Hacl_Hash_MD5_free(ptr->hash_state);
if (ptr->hash_state != NULL) {
Hacl_Hash_MD5_free(ptr->hash_state);
ptr->hash_state == NULL;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

This line should be: ptr->hash_state = NULL;

Comment thread Modules/md5module.c Outdated
vstinner enabled auto-merge (squash) March 6, 2026 22:12
vstinner merged commit ae7206e into python:3.13 Mar 6, 2026
42 checks passed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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.

2 participants


Back | FazBrowse Home | New Git URL