diff options
author | Ben Laurie <ben@openssl.org> | 2002-11-13 16:43:43 +0100 |
---|---|---|
committer | Ben Laurie <ben@openssl.org> | 2002-11-13 16:43:43 +0100 |
commit | 54a656ef081f72a740c550ebd8099b40b8b5cde0 (patch) | |
tree | 9b3638b56848c7f0648b84cfa7ad056116b37a1b /crypto/evp/e_rc2.c | |
parent | When build as dynamic engines, the loading functions should be defined (diff) | |
download | openssl-54a656ef081f72a740c550ebd8099b40b8b5cde0.tar.xz openssl-54a656ef081f72a740c550ebd8099b40b8b5cde0.zip |
Security fixes brought forward from 0.9.7.
Diffstat (limited to 'crypto/evp/e_rc2.c')
-rw-r--r-- | crypto/evp/e_rc2.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/crypto/evp/e_rc2.c b/crypto/evp/e_rc2.c index 4685198e2e..d42cbfd17e 100644 --- a/crypto/evp/e_rc2.c +++ b/crypto/evp/e_rc2.c @@ -174,6 +174,7 @@ static int rc2_get_asn1_type_and_iv(EVP_CIPHER_CTX *c, ASN1_TYPE *type) if (type != NULL) { l=EVP_CIPHER_CTX_iv_length(c); + OPENSSL_assert(l <= sizeof iv); i=ASN1_TYPE_get_int_octetstring(type,&num,iv,l); if (i != l) return(-1); |