From: Richard Levitte Date: Mon, 28 Jun 2004 12:23:35 +0000 (+0000) Subject: Make sure that the buffers are large enough to contain padding. X-Git-Tag: BEN_FIPS_TEST_6~14^2~188 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=3ac0f28837424b519d8af84c56990506199cd304;p=oweals%2Fopenssl.git Make sure that the buffers are large enough to contain padding. PR: 904 --- diff --git a/apps/speed.c b/apps/speed.c index 4c1f07cb81..c398009be5 100644 --- a/apps/speed.c +++ b/apps/speed.c @@ -253,7 +253,11 @@ #endif #undef BUFSIZE -#define BUFSIZE ((long)1024*8+1) +/* BUFSIZE needs to be one cipherblock larger than the largest number in the + lengths array (see below), to make space for padding when doing EVP tests. + 1024 extra bytes may seem much, but hey, it doesn't hurt! + -- Richard Levitte */ +#define BUFSIZE ((long)1024*9+1) int run=0; static char ftime_used = 0, times_used = 0, gettimeofday_used = 0, getrusage_used = 0;