X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=fuzz%2Fx509.c;h=8d383e4ababcf2ba7708352aad02bdbffea339c7;hb=76951372af95091bfc224a308e8cd9fb7b1db769;hp=78fef6c3ff00434626d6aa2dc2ab653e365e5c86;hpb=ad4da7fbc0779fb1730c9862221e19583de69f4f;p=oweals%2Fopenssl.git diff --git a/fuzz/x509.c b/fuzz/x509.c index 78fef6c3ff..8d383e4aba 100644 --- a/fuzz/x509.c +++ b/fuzz/x509.c @@ -10,10 +10,14 @@ #include #include +#include #include "fuzzer.h" int FuzzerInitialize(int *argc, char ***argv) { + OPENSSL_init_crypto(OPENSSL_INIT_LOAD_CRYPTO_STRINGS, NULL); + ERR_get_state(); + CRYPTO_free_ex_index(0, -1); return 1; } @@ -34,6 +38,7 @@ int FuzzerTestOneInput(const uint8_t *buf, size_t len) X509_free(x509); } + ERR_clear_error(); return 0; }