mirror of
https://github.com/openssl/openssl.git
synced 2025-04-06 20:20:50 +08:00
fix: add OOM handler for x509 fuzz test
CLA: trivial Reviewed-by: Tom Cosgrove <tom.cosgrove@arm.com> Reviewed-by: Tomas Mraz <tomas@openssl.org> (Merged from https://github.com/openssl/openssl/pull/26830)
This commit is contained in:
parent
ddd7ecb04b
commit
6d42072e0b
@ -78,9 +78,13 @@ int FuzzerTestOneInput(const uint8_t *buf, size_t len)
|
||||
resp = d2i_OCSP_RESPONSE(NULL, &p, len);
|
||||
|
||||
store = X509_STORE_new();
|
||||
if (store == NULL)
|
||||
goto err;
|
||||
X509_STORE_add_cert(store, x509_2);
|
||||
|
||||
param = X509_VERIFY_PARAM_new();
|
||||
if (param == NULL)
|
||||
goto err;
|
||||
X509_VERIFY_PARAM_set_flags(param, X509_V_FLAG_NO_CHECK_TIME);
|
||||
X509_VERIFY_PARAM_set_flags(param, X509_V_FLAG_X509_STRICT);
|
||||
X509_VERIFY_PARAM_set_flags(param, X509_V_FLAG_PARTIAL_CHAIN);
|
||||
|
Loading…
x
Reference in New Issue
Block a user