[openssl] openssl-3.0 update

tomas at openssl.org tomas at openssl.org
Fri Jan 28 14:07:23 UTC 2022


The branch openssl-3.0 has been updated
       via  cb7e50ba3f250a9c9978a964e98a8c8940833595 (commit)
      from  e3b57c84320dae0aaa20aa0b4c356f10efae146b (commit)


- Log -----------------------------------------------------------------
commit cb7e50ba3f250a9c9978a964e98a8c8940833595
Author: Zhou Qingyang <zhou1615 at umn.edu>
Date:   Tue Jan 25 01:37:59 2022 +0800

    Add the missing check of BN_bn2hex return value
    
    CLA: trivial
    
    Signed-off-by: Zhou Qingyang <zhou1615 at umn.edu>
    
    Reviewed-by: Paul Dale <pauli at openssl.org>
    Reviewed-by: Matt Caswell <matt at openssl.org>
    Reviewed-by: Tomas Mraz <tomas at openssl.org>
    (Merged from https://github.com/openssl/openssl/pull/17578)
    
    (cherry picked from commit 4dd085c03a885580cc945f71187131ea7fb39b70)

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

Summary of changes:
 providers/implementations/encode_decode/encode_key2text.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/providers/implementations/encode_decode/encode_key2text.c b/providers/implementations/encode_decode/encode_key2text.c
index f8f9712e96..9455f97c4a 100644
--- a/providers/implementations/encode_decode/encode_key2text.c
+++ b/providers/implementations/encode_decode/encode_key2text.c
@@ -80,6 +80,9 @@ static int print_labeled_bignum(BIO *out, const char *label, const BIGNUM *bn)
     }
 
     hex_str = BN_bn2hex(bn);
+    if (hex_str == NULL)
+        return 0;
+
     p = hex_str;
     if (*p == '-') {
         ++p;


More information about the openssl-commits mailing list