Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hmac: fix memory leak in NewHMAC #54

Merged
merged 1 commit into from
Jun 19, 2023
Merged

hmac: fix memory leak in NewHMAC #54

merged 1 commit into from
Jun 19, 2023

Conversation

qmuntal
Copy link
Contributor

@qmuntal qmuntal commented Jun 15, 2023

When using OpenSSL 3, NewHMAC calls EVP_MAC_fetch and doesn't free the returned object, which should be done calling EVP_MAC_free.

Seen while working on golang-fips/openssl#77.

@qmuntal qmuntal merged commit f18e1f2 into main Jun 19, 2023
33 checks passed
@qmuntal qmuntal deleted the hmacleak branch June 19, 2023 08:35
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.

None yet

3 participants