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

Use OPENSSL_zalloc in more places #1447

Merged
merged 3 commits into from
Feb 23, 2024
Merged

Conversation

justsmth
Copy link
Contributor

@justsmth justsmth commented Feb 21, 2024

Description of changes:

  • Use OPENSSL_zalloc instead of OPENSSL_malloc when it makes subsequent initialization unnecessary.

Call-outs:

  • If we either define an OPENSSL_rezalloc or modify OPENSSL_realloc to call OPENSSL_zalloc, there's a couple more places where we might avoid subsequent initializations.

Testing:

Debug/FIPS build succeeded on my Mac.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license and the ISC license.

@justsmth justsmth requested a review from a team as a code owner February 21, 2024 17:34
crypto/asn1/a_object.c Outdated Show resolved Hide resolved
@justsmth justsmth requested a review from nebeid February 22, 2024 15:51
@justsmth justsmth merged commit b8135dd into aws:main Feb 23, 2024
38 of 39 checks passed
@justsmth justsmth deleted the zalloc-all-the-things branch February 23, 2024 20:18
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