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

RT4340: Check method before access and release ctx in error paths #737

Closed
wants to merge 3 commits into from

Conversation

ajmohan
Copy link
Contributor

@ajmohan ajmohan commented Feb 23, 2016

  • In error paths, EVP_MD_CTX allocated by the callee is not released.
  • Checking method before accessing

- In error paths, EVP_MD_CTX allocated by the callee is not released.
- Checking method before accessing
goto err;
}

if (!pkey->ameth) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

as long as you'r changing things, please make this ==NULL

@ajmohan
Copy link
Contributor Author

ajmohan commented Feb 24, 2016

Done, thanks.

@ajmohan ajmohan changed the title Check method before access and release ctx in error paths RT4340: Check method before access and release ctx in error paths Feb 24, 2016
@richsalz richsalz self-assigned this Feb 24, 2016
@mattcaswell
Copy link
Member

+1

@mattcaswell mattcaswell added the approval: done This pull request has the required number of approvals label Feb 26, 2016
@richsalz
Copy link
Contributor

pushed to master, closing. thanks!

@richsalz richsalz closed this Feb 26, 2016
@ajmohan ajmohan deleted the asn1_isgn_ctx_eck branch February 26, 2016 16:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approval: done This pull request has the required number of approvals
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants