]> git.ipfire.org Git - thirdparty/openssl.git/commit
Make ossl_ht_delete use read-once semantics
authorNeil Horman <nhorman@openssl.org>
Mon, 22 Jul 2024 21:28:02 +0000 (17:28 -0400)
committerNeil Horman <nhorman@openssl.org>
Wed, 31 Jul 2024 12:05:53 +0000 (08:05 -0400)
commit8e5cc43e74b32aca030a33e092b748addc564cd4
tree62657a8894591a370c4fad61dad5c8c264f1b06b
parent3190f5c06bd23ae4ddc659409e77070a6caa1539
Make ossl_ht_delete use read-once semantics

To ensure that the value of h->md doesn't get recomputed during a delete
operation use ossl_rcu_deref on it

Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Tom Cosgrove <tom.cosgrove@arm.com>
(Merged from https://github.com/openssl/openssl/pull/24969)
crypto/hashtable/hashtable.c