summaryrefslogtreecommitdiffstats
path: root/crypto
diff options
context:
space:
mode:
authorJiasheng Jiang <jiasheng@iscas.ac.cn>2022-02-21 10:10:23 +0800
committerTomas Mraz <tomas@openssl.org>2022-02-28 12:15:41 +0100
commit885d97fbf84fb9de7548a5f6d4e90798f719022a (patch)
treea92675633aaa3259b2dfee010abc58ae5a0c2eeb /crypto
parent3d4dd8f272aafb05446c567c0919870880c6ddd1 (diff)
fuzz/fuzz_rand.c: Add check for OSSL_LIB_CTX_new
As the potential failure of the OPENSSL_zalloc(), the OSSL_LIB_CTX_new() could return NULL. Therefore, it should be better to check it and return error if fails in order to guarantee the success of the initialization. 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/17738)
Diffstat (limited to 'crypto')
0 files changed, 0 insertions, 0 deletions