[openssl-commits] [openssl] OpenSSL_1_1_1-stable update

nic.tuv at gmail.com nic.tuv at gmail.com
Sat Nov 10 02:47:34 UTC 2018


The branch OpenSSL_1_1_1-stable has been updated
       via  98f62979b2e6233470619c9adfa44704a7036699 (commit)
      from  6f172154f5d389a9e52583c6564b2693cb631e7f (commit)


- Log -----------------------------------------------------------------
commit 98f62979b2e6233470619c9adfa44704a7036699
Author: Mansour Ahmadi <m.ahmadi at northeastern.edu>
Date:   Wed Oct 17 18:13:57 2018 -0400

    Check return value of EVP_PKEY_new
    
    Reviewed-by: Paul Yang <yang.yang at baishancloud.com>
    Reviewed-by: Nicola Tuveri <nic.tuv at gmail.com>
    Reviewed-by: Matt Caswell <matt at openssl.org>
    (Merged from https://github.com/openssl/openssl/pull/7427)
    
    (cherry picked from commit d896b79b0994a35ecfd1c8e729d348d67236150e)

-----------------------------------------------------------------------

Summary of changes:
 apps/rsa.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/apps/rsa.c b/apps/rsa.c
index 5098a20..fdd02dc 100644
--- a/apps/rsa.c
+++ b/apps/rsa.c
@@ -269,6 +269,9 @@ int rsa_main(int argc, char **argv)
     } else if (outformat == FORMAT_MSBLOB || outformat == FORMAT_PVK) {
         EVP_PKEY *pk;
         pk = EVP_PKEY_new();
+        if (pk == NULL)
+            goto end;
+
         EVP_PKEY_set1_RSA(pk, rsa);
         if (outformat == FORMAT_PVK) {
             if (pubin) {


More information about the openssl-commits mailing list