From: Dr. Stephen Henson Date: Thu, 28 Apr 2005 00:21:29 +0000 (+0000) Subject: Increase offset for BIO_f_enc() to avoid problems with overlapping buffers X-Git-Tag: BEN_FIPS_TEST_8~42^2~44 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a93b01be5735f26dd064160d3b132e1e27a4996e;p=thirdparty%2Fopenssl.git Increase offset for BIO_f_enc() to avoid problems with overlapping buffers when decrypting data. --- diff --git a/crypto/evp/bio_enc.c b/crypto/evp/bio_enc.c index 183836c85c4..f6ac94c6e1b 100644 --- a/crypto/evp/bio_enc.c +++ b/crypto/evp/bio_enc.c @@ -71,7 +71,7 @@ static int enc_new(BIO *h); static int enc_free(BIO *data); static long enc_callback_ctrl(BIO *h, int cmd, bio_info_cb *fps); #define ENC_BLOCK_SIZE (1024*4) -#define BUF_OFFSET EVP_MAX_BLOCK_LENGTH +#define BUF_OFFSET (EVP_MAX_BLOCK_LENGTH*2) typedef struct enc_struct {