4002N/A#
4002N/A# This was developed in house and reported to the upstream.
4002N/A#
1859N/A--- openssl-1.0.1e/crypto/evp/e_aes.c Tue Jul 2 11:03:12 2013
1859N/A+++ openssl-1.0.1e/crypto/evp/e_aes.c.new Tue Jul 2 11:04:56 2013
4820N/A@@ -1016,8 +1016,12 @@
4002N/A static int aes_cbc_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out,
4002N/A const unsigned char *in, size_t len)
1859N/A {
4002N/A+ size_t bl = ctx->cipher->block_size;
4002N/A EVP_AES_KEY *dat = (EVP_AES_KEY *) ctx->cipher_data;
1859N/A
4002N/A+ if (len < bl)
4002N/A+ return 1;
1859N/A+
4002N/A if (dat->stream.cbc)
4002N/A (*dat->stream.cbc) (in, out, len, &dat->ks, ctx->iv, ctx->encrypt);
4002N/A else if (ctx->encrypt)