diff options
author | Dr. Matthias St. Pierre <Matthias.St.Pierre@ncp-e.com> | 2019-12-12 07:41:00 +1000 |
---|---|---|
committer | Pauli <paul.dale@oracle.com> | 2019-12-12 07:41:00 +1000 |
commit | 0402c90ff9caac4c680e3cb6db7729e00d3fc20b (patch) | |
tree | 568c135161a1222d9dc224fa13b343690bdcb57e /test/cmp_ctx_test.c | |
parent | f5e77bb0fa25b2fd87c879eb5bfa3e7945731675 (diff) | |
download | openssl-new-0402c90ff9caac4c680e3cb6db7729e00d3fc20b.tar.gz |
rand_lib.c: fix null pointer dereferences after RAND_get_rand_method() failure
RAND_get_rand_method() can return a NULL method pointer in the case of a
malloc failure, so don't dereference it without a check.
Reported-by: Zu-Ming Jiang (detected by FIFUZZ)
Fixes #10480
Reviewed-by: Paul Dale <paul.dale@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/10483)
Diffstat (limited to 'test/cmp_ctx_test.c')
0 files changed, 0 insertions, 0 deletions