[openssl] master update
Dr. Paul Dale
pauli at openssl.org
Wed Jun 17 06:01:14 UTC 2020
The branch master has been updated
via 24b6261e5bb286fa494e7208a3de28365e0ca004 (commit)
via ae93e8c21ec089aa23d30df1787308ae9c2fd18d (commit)
from 4f2271d58a36b2aee125062ffb9626c6208fa394 (commit)
- Log -----------------------------------------------------------------
commit 24b6261e5bb286fa494e7208a3de28365e0ca004
Author: Pauli <paul.dale at oracle.com>
Date: Mon Jun 15 08:13:43 2020 +1000
coverity 1464213: API usage errors (PRINTF_ARGS)
Reviewed-by: Dmitry Belyavskiy <beldmit at gmail.com>
(Merged from https://github.com/openssl/openssl/pull/12149)
commit ae93e8c21ec089aa23d30df1787308ae9c2fd18d
Author: Pauli <paul.dale at oracle.com>
Date: Mon Jun 15 08:11:13 2020 +1000
coverity 1464212, 1464214 & 1464215: Resource leaks
Reviewed-by: Dmitry Belyavskiy <beldmit at gmail.com>
(Merged from https://github.com/openssl/openssl/pull/12149)
-----------------------------------------------------------------------
Summary of changes:
apps/dsaparam.c | 3 +++
apps/lib/http_server.c | 2 +-
2 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/apps/dsaparam.c b/apps/dsaparam.c
index dfcaf38ca9..5fd906a069 100644
--- a/apps/dsaparam.c
+++ b/apps/dsaparam.c
@@ -212,6 +212,9 @@ int dsaparam_main(int argc, char **argv)
print_bignum_var(bio_out, p, "dsap", bits_p, data);
print_bignum_var(bio_out, q, "dsaq", bits_p, data);
print_bignum_var(bio_out, g, "dsag", bits_p, data);
+ BN_free(p);
+ BN_free(q);
+ BN_free(g);
BIO_printf(bio_out, " DSA *dsa = DSA_new();\n"
" BIGNUM *p, *q, *g;\n"
"\n");
diff --git a/apps/lib/http_server.c b/apps/lib/http_server.c
index 11f0b1fcb5..5c009b9990 100644
--- a/apps/lib/http_server.c
+++ b/apps/lib/http_server.c
@@ -397,7 +397,7 @@ int http_server_get_asn1_req(const ASN1_ITEM *it, ASN1_VALUE **preq,
log_message(prog, LOG_ERR, "Error parsing request");
} else if (ppath != NULL && (*ppath = OPENSSL_strdup(url)) == NULL) {
log_message(prog, LOG_ERR,
- "Out of memory allocating %d bytes", strlen(url) + 1);
+ "Out of memory allocating %zu bytes", strlen(url) + 1);
ASN1_item_free(req, it);
goto fatal;
}
More information about the openssl-commits
mailing list