[openssl] openssl-3.0 update

Dr. Paul Dale pauli at openssl.org
Tue Jan 4 00:10:05 UTC 2022


The branch openssl-3.0 has been updated
       via  d0bfe6dc399e7071b660160d3470a050f0240013 (commit)
      from  5135551613f134d39fe34442d08b38d5221175b9 (commit)


- Log -----------------------------------------------------------------
commit d0bfe6dc399e7071b660160d3470a050f0240013
Author: Matt Caswell <matt at openssl.org>
Date:   Wed Dec 29 13:42:58 2021 +0000

    Validate the category in OSSL_trace_end()
    
    OSSL_trace_end() should validate that the category it has been passed
    by the caler is valid, and return immediately if not.
    
    Fixes #17353
    
    Reviewed-by: Tomas Mraz <tomas at openssl.org>
    Reviewed-by: Tim Hudson <tjh at openssl.org>
    Reviewed-by: Matthias St. Pierre <Matthias.St.Pierre at ncp-e.com>
    Reviewed-by: Paul Dale <pauli at openssl.org>
    (Merged from https://github.com/openssl/openssl/pull/17371)
    
    (cherry picked from commit ee8a61e158c42c327c3303101083422b9a7cc504)

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

Summary of changes:
 crypto/trace.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/crypto/trace.c b/crypto/trace.c
index f012b617ab..cc0b477698 100644
--- a/crypto/trace.c
+++ b/crypto/trace.c
@@ -496,6 +496,8 @@ void OSSL_trace_end(int category, BIO * channel)
     char *suffix = NULL;
 
     category = ossl_trace_get_category(category);
+    if (category < 0)
+        return;
     suffix = trace_channels[category].suffix;
     if (channel != NULL
         && ossl_assert(channel == current_channel)) {


More information about the openssl-commits mailing list