[openssl-commits] [openssl] OpenSSL_1_1_0-stable update
Rich Salz
rsalz at openssl.org
Wed Mar 1 17:27:45 UTC 2017
The branch OpenSSL_1_1_0-stable has been updated
via 4cdf91ef7d6cd05706027c341d36db867276ea47 (commit)
from 1c78765f2dcc0d30bcc1ac279cc03cb388808c95 (commit)
- Log -----------------------------------------------------------------
commit 4cdf91ef7d6cd05706027c341d36db867276ea47
Author: Bernd Edlinger <bernd.edlinger at hotmail.de>
Date: Tue Feb 21 06:58:04 2017 +0100
Check that async_jobs is not negative and not too high.
Reviewed-by: Matt Caswell <matt at openssl.org>
Reviewed-by: Rich Salz <rsalz at openssl.org>
(Merged from https://github.com/openssl/openssl/pull/2693)
(cherry picked from commit f8aa15728ba960137faf77b298fa60c1e63dc50f)
-----------------------------------------------------------------------
Summary of changes:
apps/speed.c | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/apps/speed.c b/apps/speed.c
index df22422..ad2daab 100644
--- a/apps/speed.c
+++ b/apps/speed.c
@@ -1235,7 +1235,7 @@ int speed_main(int argc, char **argv)
#ifndef NO_FORK
int multi = 0;
#endif
- int async_jobs = 0;
+ unsigned int async_jobs = 0;
#if !defined(OPENSSL_NO_RSA) || !defined(OPENSSL_NO_DSA) \
|| !defined(OPENSSL_NO_EC)
long rsa_count = 1;
@@ -1414,6 +1414,12 @@ int speed_main(int argc, char **argv)
prog);
goto opterr;
}
+ if (async_jobs > 99999) {
+ BIO_printf(bio_err,
+ "%s: too many async_jobs\n",
+ prog);
+ goto opterr;
+ }
#endif
break;
case OPT_MISALIGN:
More information about the openssl-commits
mailing list