-
-
Notifications
You must be signed in to change notification settings - Fork 10.1k
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
Fix EVP_MD_meth_dup and EVP_CIPHER_meth_dup #16159
Conversation
Make sure the origin is set correctly when duping an EVP_MD or EVP_CIPHER. Fixes openssl#16157
@mattcaswell, isn't it worth adding an asan test according to #16157? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Does this warrant a test case? |
Check that EVP_MD_meth_free() and EVP_CIPHER_meth_free() does actually free the data.
Test case added. Please reconfirm. |
no-deprecated failure seems relevant |
Fixup pushed to address the no-deprecated problem. |
Formal reapprove. |
24 hours has passed since 'approval: done' was set, but as this PR has been updated in that time the label 'approval: ready to merge' is not being automatically set. Please review the updates and set the label manually. |
Merged to master, thanks for this. |
Check that EVP_MD_meth_free() and EVP_CIPHER_meth_free() does actually free the data. Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com> Reviewed-by: Paul Dale <pauli@openssl.org> (Merged from #16159)
Make sure the origin is set correctly when duping an EVP_MD or EVP_CIPHER.
Fixes #16157