mirror of
https://github.com/openssl/openssl.git
synced 2025-01-06 13:26:43 +08:00
7f1cb465c1
The get_globals could return NULL, for example, CRYPTO_THREAD_read_lock() failed. Therefore, just checking the member of 'bcgbl' is not enough. We need to check 'bcgbl' itself too in order to avoid the dereference of the NULL pointer. And the caller of ossl_bio_init_core(), OSSL_LIB_CTX_new_from_dispatch() in `crypto/context.c`, has already checked return value and dealed with the situation if it returns 0. Signed-off-by: Jiasheng Jiang <jiasheng@iscas.ac.cn> Reviewed-by: Paul Dale <pauli@openssl.org> Reviewed-by: Tomas Mraz <tomas@openssl.org> (Merged from https://github.com/openssl/openssl/pull/17581) |
||
---|---|---|
.. | ||
bf_buff.c | ||
bf_lbuf.c | ||
bf_nbio.c | ||
bf_null.c | ||
bf_prefix.c | ||
bf_readbuff.c | ||
bio_addr.c | ||
bio_cb.c | ||
bio_dump.c | ||
bio_err.c | ||
bio_lib.c | ||
bio_local.h | ||
bio_meth.c | ||
bio_print.c | ||
bio_sock2.c | ||
bio_sock.c | ||
bss_acpt.c | ||
bss_bio.c | ||
bss_conn.c | ||
bss_core.c | ||
bss_dgram.c | ||
bss_fd.c | ||
bss_file.c | ||
bss_log.c | ||
bss_mem.c | ||
bss_null.c | ||
bss_sock.c | ||
build.info | ||
ossl_core_bio.c |