components/openssl/common/patches/032-aes_cbc_len_check.patch
changeset 4822 1fb8a14c6702
parent 4370 7043c27399f1
equal deleted inserted replaced
4821:54dafbe33fdb 4822:1fb8a14c6702
     1 #
     1 #
     2 # This was developed in house and reported to the upstream.
     2 # This was developed in house and reported to the upstream.
     3 #
     3 #
     4 --- openssl-1.0.1e/crypto/evp/e_aes.c        Tue Jul  2 11:03:12 2013
     4 --- openssl-1.0.1e/crypto/evp/e_aes.c        Tue Jul  2 11:03:12 2013
     5 +++ openssl-1.0.1e/crypto/evp/e_aes.c.new    Tue Jul  2 11:04:56 2013
     5 +++ openssl-1.0.1e/crypto/evp/e_aes.c.new    Tue Jul  2 11:04:56 2013
     6 @@ -536,8 +536,12 @@
     6 @@ -1016,8 +1016,12 @@
     7  static int aes_cbc_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out,
     7  static int aes_cbc_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out,
     8                            const unsigned char *in, size_t len)
     8                            const unsigned char *in, size_t len)
     9  {
     9  {
    10 +    size_t	bl = ctx->cipher->block_size;
    10 +    size_t	bl = ctx->cipher->block_size;
    11      EVP_AES_KEY *dat = (EVP_AES_KEY *) ctx->cipher_data;
    11      EVP_AES_KEY *dat = (EVP_AES_KEY *) ctx->cipher_data;