[openssl/openssl] 18e72c: Fix occasional assertion failure when storing prop...

Tomáš Mráz noreply at github.com
Tue Nov 29 07:23:58 UTC 2022


  Branch: refs/heads/openssl-3.1
  Home:   https://github.com/openssl/openssl
  Commit: 18e72cbefec5410d360f5c64b51243e12bd60bae
      https://github.com/openssl/openssl/commit/18e72cbefec5410d360f5c64b51243e12bd60bae
  Author: Tomas Mraz <tomas at openssl.org>
  Date:   2022-11-29 (Tue, 29 Nov 2022)

  Changed paths:
    M crypto/property/defn_cache.c
    M crypto/property/property.c
    M crypto/property/property_local.h
    M test/property_test.c

  Log Message:
  -----------
  Fix occasional assertion failure when storing properties

Fixes #18631

The store lock does not prevent concurrent access to the
property cache, because there are multiple stores.

We drop the newly created entry and use the exisiting one
if there is one already.

Reviewed-by: Matt Caswell <matt at openssl.org>
Reviewed-by: Paul Dale <pauli at openssl.org>
(Merged from https://github.com/openssl/openssl/pull/19762)

(cherry picked from commit 92a25e24e6ec9735dea9ec645502cb075a5f8d24)




More information about the openssl-commits mailing list