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

(maint) Prevent possible leak of env_md_ctx_st struct #644

Merged
merged 1 commit into from
Aug 31, 2017
Merged

(maint) Prevent possible leak of env_md_ctx_st struct #644

merged 1 commit into from
Aug 31, 2017

Conversation

mruzicka
Copy link
Contributor

Prevent possible memory leak of the OpenSSL's env_md_ctx_st structure which could happen in the calculateSha256 function in case of an IO error.

While at it use the boost::algorithm::hex function for turning the digest's binary form into a hex string instead of a custom implementation.

Prevent possible memory leak of the OpenSSL's `env_md_ctx_st`
structure which could happen in the `calculateSha256` function
in case of an IO error.

While at it use the `boost::algorithm::hex` function for turning
the digest's binary form into a hex string instead of a custom
implementation.
@puppetcla
Copy link

CLA signed by all contributors.

@MikaelSmith MikaelSmith merged commit 47cd82d into puppetlabs:master Aug 31, 2017
@mruzicka mruzicka deleted the maint_digest_stringification branch September 6, 2017 10:34
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