]> git.ipfire.org Git - thirdparty/openssl.git/commit
Check rand_meth_lock existence before trying to lock it
authorJakub Zelenka <jakub.openssl@gmail.com>
Sat, 22 Mar 2025 11:04:23 +0000 (12:04 +0100)
committerTomas Mraz <tomas@openssl.org>
Tue, 13 May 2025 09:38:29 +0000 (11:38 +0200)
commit4eb3eea7a38eccfa2790020188d1d59dc68d8755
treee945efd4e7fe55ad7e1d48b63de5a7372eafc680
parent53ea500c49d41f516755aab0f03d8f5066c8623b
Check rand_meth_lock existence before trying to lock it

There are situations during exit clean up where dependent libraries
might be using TLS to finalize stuff but that might crash because
the rand_meth_lock can get freed and there is still an attempt to
get rand bytes. This change makes sure that things fail nicely.

Reviewed-by: Paul Dale <ppzgs1@gmail.com>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/27119)
crypto/rand/rand_lib.c