[openssl-commits] [openssl] OpenSSL_1_0_2-stable update
bernd.edlinger at hotmail.de
bernd.edlinger at hotmail.de
Sun Jun 24 16:06:07 UTC 2018
The branch OpenSSL_1_0_2-stable has been updated
via e78c4f531d44d2454ba44b9de615920d340e77ce (commit)
from 8a8534620da8e13c8a7ab123ecd7fc0226f999bf (commit)
- Log -----------------------------------------------------------------
commit e78c4f531d44d2454ba44b9de615920d340e77ce
Author: Bernd Edlinger <bernd.edlinger at hotmail.de>
Date: Sat Jun 23 22:17:19 2018 +0200
Fix a new gcc-9 warning [-Wstringop-truncation]
Reviewed-by: Rich Salz <rsalz at openssl.org>
(Merged from https://github.com/openssl/openssl/pull/6581)
(cherry picked from commit dc6c374bdb4872f6d5d727e73a2ed834e972842c)
-----------------------------------------------------------------------
Summary of changes:
crypto/bio/bss_log.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/crypto/bio/bss_log.c b/crypto/bio/bss_log.c
index 1283a52..69c6e20 100644
--- a/crypto/bio/bss_log.c
+++ b/crypto/bio/bss_log.c
@@ -242,7 +242,7 @@ static int MS_CALLBACK slg_write(BIO *b, const char *in, int inl)
if ((buf = (char *)OPENSSL_malloc(inl + 1)) == NULL) {
return (0);
}
- strncpy(buf, in, inl);
+ memcpy(buf, in, inl);
buf[inl] = '\0';
i = 0;
More information about the openssl-commits
mailing list