From: Ben Laurie Date: Sat, 30 Aug 2003 14:49:08 +0000 (+0000) Subject: Oops. Need to allocate extra buffer. X-Git-Tag: BEN_FIPS_TEST_1~80 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=2e9f3c463631ca6f25a93d58819bc2063ffc8577;p=oweals%2Fopenssl.git Oops. Need to allocate extra buffer. --- 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);