[openssl/openssl] 327261: test/threadstest.c: Add checks for CRYPTO_THREAD_l...

JiashengJiang noreply at github.com
Mon May 6 08:27:03 UTC 2024


  Branch: refs/heads/master
  Home:   https://github.com/openssl/openssl
  Commit: 327261c076b8468382e1effea14d79446cc22b4d
      https://github.com/openssl/openssl/commit/327261c076b8468382e1effea14d79446cc22b4d
  Author: Jiasheng Jiang <jiasheng at purdue.edu>
  Date:   2024-05-06 (Mon, 06 May 2024)

  Changed paths:
    M test/threadstest.c

  Log Message:
  -----------
  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 at purdue.edu>

Reviewed-by: Neil Horman <nhorman at openssl.org>
Reviewed-by: Tomas Mraz <tomas at openssl.org>
(Merged from https://github.com/openssl/openssl/pull/24313)



To unsubscribe from these emails, change your notification settings at https://github.com/openssl/openssl/settings/notifications


More information about the openssl-commits mailing list