Add locking to CRYPTO_secure_used
authorNeil Horman <nhorman@openssl.org>
Wed, 22 Nov 2023 19:20:39 +0000 (14:20 -0500)
committerNeil Horman <nhorman@openssl.org>
Fri, 1 Dec 2023 14:03:04 +0000 (09:03 -0500)
commit7eae6ee0e503b0961d4f2e75baac981f2766b892
tree5f7a63a994c08ec58b65e015e051562980aafa3a
parentff181969e28c1503b077b47a9ded3683524b3fd8
Add locking to CRYPTO_secure_used

Coverity issue 1551719 noted CRYPTO_secure_used referenced a shared
variable without taking the appropriate read lock.  Add that.

Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Todd Short <todd.short@me.com>
(Merged from https://github.com/openssl/openssl/pull/22802)
crypto/mem_sec.c