[openssl-commits] [openssl] OpenSSL_1_0_2-stable update

Matt Caswell matt at openssl.org
Wed May 23 14:15:44 UTC 2018


The branch OpenSSL_1_0_2-stable has been updated
       via  d8908c3310240bb0efd9b17c663a8b9e47bf31dc (commit)
      from  f2bb6b8d81944261f65e3231f6eb707a9185162a (commit)


- Log -----------------------------------------------------------------
commit d8908c3310240bb0efd9b17c663a8b9e47bf31dc
Author: Matt Caswell <matt at openssl.org>
Date:   Tue May 22 13:34:42 2018 +0100

    Fix a bogus warning about an uninitialised var
    
    The variable in question can never be used uninitialised, but we silence
    the compiler anyway.
    
    Fixes #6301
    
    Reviewed-by: Richard Levitte <levitte at openssl.org>
    (Merged from https://github.com/openssl/openssl/pull/6329)

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

Summary of changes:
 crypto/rsa/rsa_oaep.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/crypto/rsa/rsa_oaep.c b/crypto/rsa/rsa_oaep.c
index 9a01b4a..9def7a0 100644
--- a/crypto/rsa/rsa_oaep.c
+++ b/crypto/rsa/rsa_oaep.c
@@ -120,7 +120,7 @@ int RSA_padding_check_PKCS1_OAEP_mgf1(unsigned char *to, int tlen,
                                       int plen, const EVP_MD *md,
                                       const EVP_MD *mgf1md)
 {
-    int i, dblen, mlen = -1, one_index = 0, msg_index;
+    int i, dblen = 0, mlen = -1, one_index = 0, msg_index;
     unsigned int good, found_one_byte;
     const unsigned char *maskedseed, *maskeddb;
     /*


More information about the openssl-commits mailing list