From 27a0b9dc856c9e38d98caa2c5ecae018af371604 Mon Sep 17 00:00:00 2001 From: Richard Levitte Date: Fri, 15 Nov 2002 12:53:11 +0000 Subject: (almost) recent changes from HEAD. --- crypto/evp/p5_crpt2.c | 1 + 1 file changed, 1 insertion(+) (limited to 'crypto/evp/p5_crpt2.c') diff --git a/crypto/evp/p5_crpt2.c b/crypto/evp/p5_crpt2.c index 7485d6a278..098ce8afa0 100644 --- a/crypto/evp/p5_crpt2.c +++ b/crypto/evp/p5_crpt2.c @@ -190,6 +190,7 @@ int PKCS5_v2_PBE_keyivgen(EVP_CIPHER_CTX *ctx, const char *pass, int passlen, goto err; } keylen = EVP_CIPHER_CTX_key_length(ctx); + OPENSSL_assert(keylen <= sizeof key); /* Now decode key derivation function */ -- cgit v1.2.1