[openssl/openssl] fed8db: Fix a memory leak in ossl_method_store_add()
    matt 
    noreply at reply.github.openssl.org
       
    Thu Jun  9 10:44:01 UTC 2022
    
    
  
  Branch: refs/heads/master
  Home:   https://github.openssl.org/openssl/openssl
  Commit: fed8dbea27b7e01ee934951b25c6ffd40ad1d5c3
      https://github.openssl.org/openssl/openssl/commit/fed8dbea27b7e01ee934951b25c6ffd40ad1d5c3
  Author: Matt Caswell <matt at openssl.org>
  Date:   2022-06-09 (Thu, 09 Jun 2022)
  Changed paths:
    M crypto/property/property.c
  Log Message:
  -----------
  Fix a memory leak in ossl_method_store_add()
If the call to ossl_prop_defn_set() fails then the OSSL_PROPERTY_LIST
we just created will leak.
Found as a result of:
https://github.com/openssl/openssl/pull/18355#issuecomment-1139499881
Reviewed-by: Tomas Mraz <tomas at openssl.org>
Reviewed-by: Todd Short <todd.short at me.com>
Reviewed-by: Hugo Landau <hlandau at openssl.org>
Reviewed-by: Paul Dale <pauli at openssl.org>
(Merged from https://github.com/openssl/openssl/pull/18458)
  Commit: 5f4b3db624a83b812f23412e698ffd9c4284f87a
      https://github.openssl.org/openssl/openssl/commit/5f4b3db624a83b812f23412e698ffd9c4284f87a
  Author: Matt Caswell <matt at openssl.org>
  Date:   2022-06-09 (Thu, 09 Jun 2022)
  Changed paths:
    M crypto/property/defn_cache.c
  Log Message:
  -----------
  Assert that a property definition cache entry is the first
When adding a property definition cache entry for a given property query
string we add an assert that we are not replacing an existing entry. If we
are then that indicates a bug in the caller.
Reviewed-by: Tomas Mraz <tomas at openssl.org>
Reviewed-by: Todd Short <todd.short at me.com>
Reviewed-by: Hugo Landau <hlandau at openssl.org>
Reviewed-by: Paul Dale <pauli at openssl.org>
(Merged from https://github.com/openssl/openssl/pull/18458)
Compare: https://github.openssl.org/openssl/openssl/compare/9cef2a70b151...5f4b3db624a8
    
    
More information about the openssl-commits
mailing list