diff options
author | Richard Levitte <levitte@openssl.org> | 2004-06-28 12:23:35 +0000 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2004-06-28 12:23:35 +0000 |
commit | 3ac0f28837424b519d8af84c56990506199cd304 (patch) | |
tree | e5b27f8e9e3d3c100c71528c9aae1a817fde0161 /apps | |
parent | 47c1735acd4fe3d26b192e6784069892c37320a2 (diff) | |
download | openssl-3ac0f28837424b519d8af84c56990506199cd304.tar.gz |
Make sure that the buffers are large enough to contain padding.
PR: 904
Diffstat (limited to 'apps')
-rw-r--r-- | apps/speed.c | 6 |
1 files changed, 5 insertions, 1 deletions
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; |