gh-155843: properly initialize HMAC objects to prevent crashes after allocation failures by picnixz · Pull Request #155845 · python/cpython · GitHub
Skip to content

gh-155843: properly initialize HMAC objects to prevent crashes after allocation failures - #155845

Merged
picnixz merged 5 commits into
python:mainfrom
picnixz:meta/crypto/c/31-42/invalid-init-usage-155843
Sep 6, 2026
Merged

gh-155843: properly initialize HMAC objects to prevent crashes after allocation failures#155845
picnixz merged 5 commits into
python:mainfrom
picnixz:meta/crypto/c/31-42/invalid-init-usage-155843

Conversation

@picnixz

@picnixz picnixz commented Aug 15, 2026

Copy link
Copy Markdown
Member

@picnixz
picnixz requested a review from gpshead as a code owner August 15, 2026 11:56
@picnixz picnixz added needs backport to 3.14 bugs and security fixes needs backport to 3.15 pre-release feature fixes, bugs and security fixes and removed awaiting core review labels Aug 15, 2026
Comment thread Modules/hmacmodule.c Outdated
Comment thread Modules/hmacmodule.c Outdated
Comment thread Modules/hmacmodule.c Outdated
Comment thread Modules/hmacmodule.c Outdated
@picnixz
picnixz merged commit 20d2786 into python:main Sep 6, 2026
54 checks passed
@miss-islington-app

Copy link
Copy Markdown

@picnixz
picnixz deleted the meta/crypto/c/31-42/invalid-init-usage-155843 branch September 6, 2026 14:31
@miss-islington-app

Copy link
Copy Markdown

Sorry, @picnixz, I could not cleanly backport this to 3.14 due to a conflict.
Please backport using cherry_picker on command line.

cherry_picker 20d278623d1e63d3167ba49fbd8099bdece45c3f 3.14

@bedevere-app

bedevere-app Bot commented Sep 6, 2026

Copy link
Copy Markdown

GH-157036 is a backport of this pull request to the 3.15 branch.

@bedevere-app bedevere-app Bot removed the needs backport to 3.15 pre-release feature fixes, bugs and security fixes label Sep 6, 2026
@bedevere-app

bedevere-app Bot commented Sep 6, 2026

Copy link
Copy Markdown

GH-157037 is a backport of this pull request to the 3.14 branch.

@bedevere-app bedevere-app Bot removed the needs backport to 3.14 bugs and security fixes label Sep 6, 2026
@bedevere-bot

Copy link
Copy Markdown

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.

3 participants