Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Fix memory leak in openssl fips modes#7064

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
ethomson merged 1 commit intolibgit2:mainfromwklatka:openssl-fips-memory-leak
Jun 5, 2025

Conversation

wklatka
Copy link
Contributor

Version 1.9.0 introduced a memory leak when using the new FIPS-compliant mode (-DUSE_SHA256=OpenSSL-FIPS).

The culprit turned out to be thectx->c = NULL; line added togit_hash_sha256_final function, which too hastily cleans up a pointer. Because of that, the cleanup function call to EVP_MD_CTX_free(nullptr) doesn't have any effect and the memory is never freed.

The same applies to SHA1 fips mode.

@wklatkawklatka changed the titleFixed memory leak in openssl fips modesFix memory leak in openssl fips modesApr 11, 2025
@ethomson
Copy link
Member

Good catch. Thanks!

@ethomsonethomson merged commit29e4e19 intolibgit2:mainJun 5, 2025
@wklatkawklatka deleted the openssl-fips-memory-leak branchJune 5, 2025 11:52
@ethomsonethomson added the bug labelJun 6, 2025
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@ethomsonethomsonethomson approved these changes

Assignees
No one assigned
Labels
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@wklatka@ethomson

[8]ページ先頭

©2009-2025 Movatter.jp