]> git.ipfire.org Git - thirdparty/openssl.git/commit
test/threadstest.c: Add checks for CRYPTO_THREAD_lock_new()
authorJiasheng Jiang <jiasheng@purdue.edu>
Wed, 1 May 2024 20:03:13 +0000 (20:03 +0000)
committerTomas Mraz <tomas@openssl.org>
Mon, 6 May 2024 08:26:18 +0000 (10:26 +0200)
commit168e49b5ab9e110c2cf618d025418d480f5166d6
treeed7b5ae74e2da2aea3a5c6952d111d9ea7a614ac
parent12d40c9af546607de5809fc10a211ac7ae4646b3
test/threadstest.c: Add checks for CRYPTO_THREAD_lock_new()

Add checks for the return value of CRYPTO_THREAD_lock_new() in order to avoid Null pointer dereference.

Fixes: 5f8b812931 ("Add locking to atomic operations in rw/rcu tests")
Fixes: d0e1a0ae70 ("RCU lock implementation")
Fixes: 71a04cfca0 ("Implement new multi-threading API")
Signed-off-by: Jiasheng Jiang <jiasheng@purdue.edu>
Reviewed-by: Neil Horman <nhorman@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/24313)

(cherry picked from commit 327261c076b8468382e1effea14d79446cc22b4d)
test/threadstest.c