diff options
author | Ben Laurie <ben@openssl.org> | 2003-08-30 18:49:08 +0400 |
---|---|---|
committer | Ben Laurie <ben@openssl.org> | 2003-08-30 18:49:08 +0400 |
commit | 2e9f3c463631ca6f25a93d58819bc2063ffc8577 (patch) | |
tree | 13e1b8c77bfd17810606eb9e5246294abcdbb193 /crypto | |
parent | aac38617739273c5951228fb377ed0d9a3af44a8 (diff) |
Oops. Need to allocate extra buffer.
Diffstat (limited to 'crypto')
-rw-r--r-- | crypto/evp/e_des.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/evp/e_des.c b/crypto/evp/e_des.c index 4e1337449b..e95d2ec914 100644 --- a/crypto/evp/e_des.c +++ b/crypto/evp/e_des.c @@ -125,7 +125,7 @@ static int des_cfb8_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out, { unsigned char *tmp; /* DES_cfb_encrypt rudely overwrites the whole buffer*/ - tmp=alloca(inl); + tmp=alloca(inl+7); memcpy(tmp,in,inl); DES_cfb_encrypt(tmp,tmp,8,inl,ctx->cipher_data,(DES_cblock *)ctx->iv, ctx->encrypt); |