[openssl] master update

Dr. Paul Dale pauli at openssl.org
Sun Jun 27 06:13:10 UTC 2021


The branch master has been updated
       via  9f54970c1d3ae94f9dbff6992a2243159ab5c4fc (commit)
      from  4acda8635ed55ddf831d1bb3dc6086054f01cc61 (commit)


- Log -----------------------------------------------------------------
commit 9f54970c1d3ae94f9dbff6992a2243159ab5c4fc
Author: Pauli <pauli at openssl.org>
Date:   Fri Jun 25 23:18:28 2021 +1000

    evp_test: use correct size in memory clear
    
    Fixes #15917
    
    Reviewed-by: Richard Levitte <levitte at openssl.org>
    (Merged from https://github.com/openssl/openssl/pull/15920)

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

Summary of changes:
 test/evp_test.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/test/evp_test.c b/test/evp_test.c
index 16b1a50c2d..0009cae442 100644
--- a/test/evp_test.c
+++ b/test/evp_test.c
@@ -486,7 +486,7 @@ static int digest_test_run(EVP_TEST *t)
             /* This should never fail but we need the returned pointer now */
             && !TEST_ptr(inbuf = sk_EVP_TEST_BUFFER_value(expected->input, 0))
             && !inbuf->count_set) {
-        OPENSSL_cleanse(got, sizeof(got));
+        OPENSSL_cleanse(got, got_len);
         if (!TEST_true(EVP_Q_digest(libctx,
                                     EVP_MD_get0_name(expected->fetched_digest),
                                     NULL, inbuf->buf, inbuf->buflen,
@@ -1543,7 +1543,7 @@ static int mac_test_run_mac(EVP_TEST *t)
 
     /* Test the EVP_Q_mac interface as well */
     if (!xof) {
-        OPENSSL_cleanse(got, sizeof(got));
+        OPENSSL_cleanse(got, got_len);
         if (!TEST_true(EVP_Q_mac(libctx, expected->mac_name, NULL,
                                  expected->alg, params,
                                  expected->key, expected->key_len,


More information about the openssl-commits mailing list