From 32268b183f5f5d6912b4a8d8e2ee28b787373eb2 Mon Sep 17 00:00:00 2001 From: Andy Polyakov Date: Sat, 12 Nov 2011 13:26:36 +0000 Subject: [PATCH] e_aes.c: additional sanity check in aes_xts_cipher. --- crypto/evp/e_aes.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crypto/evp/e_aes.c b/crypto/evp/e_aes.c index 9db385f90e..cd0af63819 100644 --- a/crypto/evp/e_aes.c +++ b/crypto/evp/e_aes.c @@ -1113,7 +1113,7 @@ static int aes_xts_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out, EVP_AES_XTS_CTX *xctx = ctx->cipher_data; if (!xctx->xts.key1 || !xctx->xts.key2) return 0; - if (!out || !in) + if (!out || !in || len