From 2e9f3c463631ca6f25a93d58819bc2063ffc8577 Mon Sep 17 00:00:00 2001 From: Ben Laurie Date: Sat, 30 Aug 2003 14:49:08 +0000 Subject: [PATCH] Oops. Need to allocate extra buffer. --- crypto/evp/e_des.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.50.1