[openssl-commits] [openssl] master update

bernd.edlinger at hotmail.de bernd.edlinger at hotmail.de
Thu Apr 19 13:48:14 UTC 2018


The branch master has been updated
       via  c9c56ee50139a143797e12563a1668df02f99c5a (commit)
      from  c190506cd827221a861c3207ae2496ea1ec7a1fd (commit)


- Log -----------------------------------------------------------------
commit c9c56ee50139a143797e12563a1668df02f99c5a
Author: Bernd Edlinger <bernd.edlinger at hotmail.de>
Date:   Fri Mar 30 19:13:06 2018 +0200

    Clear buffer in PEM_write_bio
    
    Reviewed-by: Richard Levitte <levitte at openssl.org>
    (Merged from https://github.com/openssl/openssl/pull/5814)

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

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

diff --git a/crypto/pem/pem_lib.c b/crypto/pem/pem_lib.c
index 8300992..6e66e9d 100644
--- a/crypto/pem/pem_lib.c
+++ b/crypto/pem/pem_lib.c
@@ -661,7 +661,7 @@ int PEM_write_bio(BIO *bp, const char *name, const char *header,
     if (retval == 0)
         PEMerr(PEM_F_PEM_WRITE_BIO, reason);
     EVP_ENCODE_CTX_free(ctx);
-    OPENSSL_free(buf);
+    OPENSSL_clear_free(buf, PEM_BUFSIZE * 8);
     return retval;
 }
 


More information about the openssl-commits mailing list