components/openssl/common/patches/040-uninitialized_ctx.patch
changeset 4822 1fb8a14c6702
parent 4370 7043c27399f1
equal deleted inserted replaced
4821:54dafbe33fdb 4822:1fb8a14c6702
     2 # This was developed in house.  Upstreadm notified (PR#277).
     2 # This was developed in house.  Upstreadm notified (PR#277).
     3 #
     3 #
     4 diff -ru  openssl-1.0.1m/crypto/evp/evp_enc.c openssl-1.0.1m/crypto/evp/evp_enc.c.new
     4 diff -ru  openssl-1.0.1m/crypto/evp/evp_enc.c openssl-1.0.1m/crypto/evp/evp_enc.c.new
     5 --- openssl-1.0.1m/crypto/evp/evp_enc.c Thu May  7 09:46:32 2015
     5 --- openssl-1.0.1m/crypto/evp/evp_enc.c Thu May  7 09:46:32 2015
     6 +++ openssl-1.0.1m/crypto/evp/evp_enc.c.new     Thu May  7 09:46:23 2015
     6 +++ openssl-1.0.1m/crypto/evp/evp_enc.c.new     Thu May  7 09:46:23 2015
     7 @@ -179,6 +179,7 @@
     7 @@ -185,6 +185,7 @@
     8                  EVPerr(EVP_F_EVP_CIPHERINIT_EX, ERR_R_MALLOC_FAILURE);
     8                  EVPerr(EVP_F_EVP_CIPHERINIT_EX, ERR_R_MALLOC_FAILURE);
     9                  return 0;
     9                  return 0;
    10              }
    10              }
    11 +            (void) memset(ctx->cipher_data, 0, ctx->cipher->ctx_size);
    11 +            (void) memset(ctx->cipher_data, 0, ctx->cipher->ctx_size);
    12          } else {
    12          } else {