We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
#include <openssl/evp.h> #define CF_CHECK_EQ(expr, res) if ( (expr) != (res) ) { goto end; } #define CF_CHECK_NE(expr, res) if ( (expr) == (res) ) { goto end; } int main(void) { const EVP_CIPHER* cipher = NULL; EVP_CIPHER_CTX* ctx = NULL; CF_CHECK_NE(cipher = EVP_aria_128_gcm(), NULL); CF_CHECK_NE(ctx = EVP_CIPHER_CTX_new(), NULL); CF_CHECK_EQ(EVP_EncryptInit_ex(ctx, cipher, NULL, NULL, NULL), 1); /* Leak occurs here */ CF_CHECK_EQ(EVP_CIPHER_CTX_ctrl(ctx, EVP_CTRL_AEAD_SET_IVLEN, 100, NULL), 1); end: EVP_CIPHER_CTX_free(ctx); return 0; }
iv is allocated but not freed: https://github.com/openssl/openssl/blob/master/crypto/evp/e_aria.c#L269
iv
The text was updated successfully, but these errors were encountered:
Fix a memory leak in ARIA GCM
2688dc2
Fixes openssl#8567
Fix in #8586.
Sorry, something went wrong.
e7a621d
Fixes #8567 Reviewed-by: Paul Dale <paul.dale@oracle.com> (Merged from #8586) (cherry picked from commit 183f52e)
183f52e
No branches or pull requests
iv
is allocated but not freed: https://github.com/openssl/openssl/blob/master/crypto/evp/e_aria.c#L269The text was updated successfully, but these errors were encountered: