rust/cargo-c: update to 0.10.7+cargo-0.84.0
[oi-userland.git] / components / library / openssl / common / patches / 032-aes_cbc_len_check.patch
blobc54271201d16e3062bcdce2f746c9f8507470026
2 # This was developed in house and reported to the upstream.
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
6 @@ -1016,8 +1016,12 @@
7 static int aes_cbc_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out,
8 const unsigned char *in, size_t len)
10 + size_t bl = ctx->cipher->block_size;
11 EVP_AES_KEY *dat = (EVP_AES_KEY *) ctx->cipher_data;
13 + if (len < bl)
14 + return 1;
16 if (dat->stream.cbc)
17 (*dat->stream.cbc) (in, out, len, &dat->ks, ctx->iv, ctx->encrypt);
18 else if (ctx->encrypt)