[openssl] master update

tomas at openssl.org tomas at openssl.org
Thu Mar 18 09:56:40 UTC 2021


The branch master has been updated
       via  628d2d3a7f2318b6a6a1c36f9d8d12032c69a9dd (commit)
      from  c8830891e6cb8d0782986662ca50b8fa7c97f49f (commit)


- Log -----------------------------------------------------------------
commit 628d2d3a7f2318b6a6a1c36f9d8d12032c69a9dd
Author: Kevin Cadieux <kevca at microsoft.com>
Date:   Tue Mar 16 20:23:38 2021 -0700

    Fixing stack buffer overflow error caused by incorrectly sized array.
    
    CLA: trivial
    
    Reviewed-by: Matt Caswell <matt at openssl.org>
    Reviewed-by: Paul Dale <pauli at openssl.org>
    Reviewed-by: Tomas Mraz <tomas at openssl.org>
    (Merged from https://github.com/openssl/openssl/pull/14582)

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

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

diff --git a/test/params_api_test.c b/test/params_api_test.c
index 38d6913ec5..c1dbdad129 100644
--- a/test/params_api_test.c
+++ b/test/params_api_test.c
@@ -390,8 +390,8 @@ static int test_param_size_t(int n)
 static int test_param_time_t(int n)
 {
     time_t in, out;
-    unsigned char buf[MAX_LEN], cmp[sizeof(size_t)];
-    const size_t len = raw_values[n].len >= sizeof(size_t)
+    unsigned char buf[MAX_LEN], cmp[sizeof(time_t)];
+    const size_t len = raw_values[n].len >= sizeof(time_t)
                        ? sizeof(time_t) : raw_values[n].len;
     OSSL_PARAM param = OSSL_PARAM_time_t("a", NULL);
 


More information about the openssl-commits mailing list