projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Allow Ed25519 in TLS 1.2
[openssl.git]
/
fuzz
/
bndiv.c
diff --git
a/fuzz/bndiv.c
b/fuzz/bndiv.c
index dd6d9cfafe64adc7cccbccce0c5fb969a657b3c1..30d84482a63e8cefad7e526a66238da942a38989 100644
(file)
--- a/
fuzz/bndiv.c
+++ b/
fuzz/bndiv.c
@@
-15,6
+15,7
@@
#include <stdio.h>
#include <openssl/bn.h>
#include <stdio.h>
#include <openssl/bn.h>
+#include <openssl/err.h>
#include "fuzzer.h"
static BN_CTX *ctx;
#include "fuzzer.h"
static BN_CTX *ctx;
@@
-33,6
+34,9
@@
int FuzzerInitialize(int *argc, char ***argv)
b5 = BN_new();
ctx = BN_CTX_new();
b5 = BN_new();
ctx = BN_CTX_new();
+ OPENSSL_init_crypto(OPENSSL_INIT_LOAD_CRYPTO_STRINGS, NULL);
+ ERR_get_state();
+
return 1;
}
return 1;
}
@@
-104,6
+108,7
@@
int FuzzerTestOneInput(const uint8_t *buf, size_t len)
done:
OPENSSL_assert(success);
done:
OPENSSL_assert(success);
+ ERR_clear_error();
return 0;
}
return 0;
}