Oops. Need to allocate extra buffer.
authorBen Laurie <ben@openssl.org>
Sat, 30 Aug 2003 14:49:08 +0000 (14:49 +0000)
committerBen Laurie <ben@openssl.org>
Sat, 30 Aug 2003 14:49:08 +0000 (14:49 +0000)
crypto/evp/e_des.c

index 4e1337449bb7abbedb04afb45e4efe4ee85bb4ed..e95d2ec9144bc7bda1d73b406be00bbe5a870aee 100644 (file)
@@ -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);