projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
fuzz/fuzz_rand.c: Add check for OSSL_LIB_CTX_new
[openssl.git]
/
fuzz
/
fuzz_rand.c
diff --git
a/fuzz/fuzz_rand.c
b/fuzz/fuzz_rand.c
index 5bd343d8ae999a078aceab437dcaae628d9cbc11..d71dfd7a3c64d70431b65ac1d407706f52fcaf10 100644
(file)
--- a/
fuzz/fuzz_rand.c
+++ b/
fuzz/fuzz_rand.c
@@
-146,6
+146,8
@@
static int fuzz_rand_provider_init(const OSSL_CORE_HANDLE *handle,
const OSSL_DISPATCH **out, void **provctx)
{
*provctx = OSSL_LIB_CTX_new();
+ if (*provctx == NULL)
+ return 0;
*out = fuzz_rand_method;
return 1;
}