[openssl-commits] [openssl] OpenSSL_1_0_2-stable update
Rich Salz
rsalz at openssl.org
Thu Dec 7 21:51:08 UTC 2017
The branch OpenSSL_1_0_2-stable has been updated
via 6957d91f0eed10859dff26311592b326a07a1d73 (commit)
via 236e3731bb3392f62370fe87a6eb76aa993c712c (commit)
from ebe183023289938a05a982f80be45c3e80ec030a (commit)
- Log -----------------------------------------------------------------
commit 6957d91f0eed10859dff26311592b326a07a1d73
Author: Matt Caswell <matt at openssl.org>
Date: Thu Dec 7 14:41:21 2017 +0000
Fix the buffer sizing in the fatalerrtest
Fixes #4865
Reviewed-by: Rich Salz <rsalz at openssl.org>
(Merged from https://github.com/openssl/openssl/pull/4866)
commit 236e3731bb3392f62370fe87a6eb76aa993c712c
Author: Matt Caswell <matt at openssl.org>
Date: Thu Dec 7 14:40:49 2017 +0000
Fix initialisation in fatalerrtest
Reviewed-by: Rich Salz <rsalz at openssl.org>
(Merged from https://github.com/openssl/openssl/pull/4866)
-----------------------------------------------------------------------
Summary of changes:
ssl/fatalerrtest.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/ssl/fatalerrtest.c b/ssl/fatalerrtest.c
index 0288c33..f9d66e2 100644
--- a/ssl/fatalerrtest.c
+++ b/ssl/fatalerrtest.c
@@ -13,8 +13,8 @@
int main(int argc, char *argv[])
{
- SSL_CTX *sctx, *cctx;
- SSL *sssl, *cssl;
+ SSL_CTX *sctx = NULL, *cctx = NULL;
+ SSL *sssl = NULL, *cssl = NULL;
const char *msg = "Dummy";
BIO *err = NULL, *wbio = NULL;
int ret = 1, len;
@@ -76,7 +76,7 @@ int main(int argc, char *argv[])
}
/* SSL_read()/SSL_write should fail because of a previous fatal error */
- if ((len = SSL_read(sssl, buf, sizeof(buf - 1))) > 0) {
+ if ((len = SSL_read(sssl, buf, sizeof(buf) - 1)) > 0) {
buf[len] = '\0';
printf("Unexpected success reading data: %s\n", buf);
goto err;
More information about the openssl-commits
mailing list