diff options
Diffstat (limited to 'apps/speed.c')
-rw-r--r-- | apps/speed.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/apps/speed.c b/apps/speed.c index 3af6971a1a..768e3a1ad3 100644 --- a/apps/speed.c +++ b/apps/speed.c @@ -1690,7 +1690,10 @@ int speed_main(int argc, char **argv) } } - buflen = lengths[size_num - 1] + MAX_MISALIGNMENT + 1; + buflen = lengths[size_num - 1]; + if (buflen < 36) /* size of random vector in RSA bencmark */ + buflen = 36; + buflen += MAX_MISALIGNMENT + 1; loopargs[i].buf_malloc = app_malloc(buflen, "input buffer"); loopargs[i].buf2_malloc = app_malloc(buflen, "input buffer"); memset(loopargs[i].buf_malloc, 0, buflen); |