040-uninitialized_ctx.patch revision 4820
4364N/A#
4364N/A# This was developed in house. Upstreadm notified (PR#277).
4364N/A#
4364N/Adiff -ru openssl-1.0.1m/crypto/evp/evp_enc.c openssl-1.0.1m/crypto/evp/evp_enc.c.new
4364N/A--- openssl-1.0.1m/crypto/evp/evp_enc.c Thu May 7 09:46:32 2015
4364N/A+++ openssl-1.0.1m/crypto/evp/evp_enc.c.new Thu May 7 09:46:23 2015
4820N/A@@ -185,6 +185,7 @@
4364N/A EVPerr(EVP_F_EVP_CIPHERINIT_EX, ERR_R_MALLOC_FAILURE);
4364N/A return 0;
4364N/A }
4364N/A+ (void) memset(ctx->cipher_data, 0, ctx->cipher->ctx_size);
4364N/A } else {
4364N/A ctx->cipher_data = NULL;
4364N/A }