diff options
author | Neil Horman <nhorman@openssl.org> | 2024-03-29 11:39:12 -0400 |
---|---|---|
committer | Tomas Mraz <tomas@openssl.org> | 2024-04-11 10:42:49 +0200 |
commit | 7a0d43798598401e85389e1b1d55efb44e52ba08 (patch) | |
tree | a075ce5ecf20e075bea2e4321042c5a8bf4f6b2d /crypto/conf/conf_lib.c | |
parent | e661fbc55e270bbffb9725af7483631c8895b7eb (diff) |
Add locking to atomic operations in rw/rcu tests
I neglected to add locks to the calls to CRYPTO_atomic_add in these
test, which on newer compilers is fine, as atomic operations are
defined. However on older compilers the __ATOMIC_ACQ_REL definition is
missing causing these function to be implemented using an rwlock, which
when NULL causes the locks to fail.
Fix this my creating the lock and using them appropriately
Fixes #24000
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Paul Dale <ppzgs1@gmail.com>
(Merged from https://github.com/openssl/openssl/pull/24001)
(cherry picked from commit 5f8b812931e5da24df08913c05ff8e4f4494f014)
Diffstat (limited to 'crypto/conf/conf_lib.c')
0 files changed, 0 insertions, 0 deletions