Changeset 94404 in vbox for trunk/src/libs/openssl-3.0.2/apps/speed.c
- Timestamp:
- Mar 31, 2022 9:00:36 AM (3 years ago)
- svn:sync-xref-src-repo-rev:
- 150730
- Location:
- trunk/src/libs/openssl-3.0.2
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/libs/openssl-3.0.2
- Property svn:mergeinfo
-
old new 13 13 /vendor/openssl/1.1.1k:145841-145843 14 14 /vendor/openssl/3.0.1:150323-150324 15 /vendor/openssl/current:147554-150322 15 /vendor/openssl/3.0.2:150728-150729 16 /vendor/openssl/current:147554-150727
-
- Property svn:mergeinfo
-
trunk/src/libs/openssl-3.0.2/apps/speed.c
r94082 r94404 1 1 /* 2 * Copyright 1995-202 1The OpenSSL Project Authors. All Rights Reserved.2 * Copyright 1995-2022 The OpenSSL Project Authors. All Rights Reserved. 3 3 * Copyright (c) 2002, Oracle and/or its affiliates. All rights reserved 4 4 * … … 30 30 #include "apps.h" 31 31 #include "progs.h" 32 #include "internal/numbers.h" 32 33 #include <openssl/crypto.h> 33 34 #include <openssl/rand.h> … … 452 453 #endif /* OPENSSL_NO_SM2 */ 453 454 454 #define COND(unused_cond) (run && count < 0x7fffffff)455 #define COND(unused_cond) (run && count < INT_MAX) 455 456 #define COUNT(d) (count) 456 457 … … 1775 1776 if (buflen < 36) /* size of random vector in RSA benchmark */ 1776 1777 buflen = 36; 1778 if (INT_MAX - (MAX_MISALIGNMENT + 1) < buflen) { 1779 BIO_printf(bio_err, "Error: buffer size too large\n"); 1780 goto end; 1781 } 1777 1782 buflen += MAX_MISALIGNMENT + 1; 1778 1783 loopargs[i].buf_malloc = app_malloc(buflen, "input buffer"); … … 3618 3623 print_message(alg_name, 0, mblengths[j], seconds->sym); 3619 3624 Time_F(START); 3620 for (count = 0; run && count < 0x7fffffff; count++) {3625 for (count = 0; run && count < INT_MAX; count++) { 3621 3626 unsigned char aad[EVP_AEAD_TLS1_AAD_LEN]; 3622 3627 EVP_CTRL_TLS1_1_MULTIBLOCK_PARAM mb_param;
Note:
See TracChangeset
for help on using the changeset viewer.