openssl/crypto/rand
Dr. Matthias St. Pierre f9fdb9d2f5 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/10490)
2019-12-15 15:25:18 +01:00
..
build.info crypto/rand: rename drbg_rand.c to drbg_ctr.c 2018-01-04 11:47:30 +10:00
drbg_ctr.c Reorganize local header files 2019-09-27 23:58:06 +02:00
drbg_lib.c Reorganize local header files 2019-09-27 23:58:06 +02:00
rand_egd.c Update copyright year 2018-05-29 13:16:04 +01:00
rand_err.c rand_lib.c: fix null pointer dereferences after RAND_get_rand_method() failure 2019-12-15 15:25:18 +01:00
rand_lib.c rand_lib.c: fix null pointer dereferences after RAND_get_rand_method() failure 2019-12-15 15:25:18 +01:00
rand_local.h Fix header file include guard names 2019-09-27 23:58:12 +02:00
rand_unix.c Move random-related defines from e_os.h to rand_unix.c 2019-10-19 00:08:07 +02:00
rand_vms.c Fix some typos 2019-12-11 19:17:00 +01:00
rand_win.c Fix some typos 2019-12-11 19:17:00 +01:00
randfile.c Update copyright year 2019-05-28 14:49:38 +02:00