Add a FuzzerClean() function
[openssl.git] / fuzz / bignum.c
index dc722af83f4fdbe9dc357a27562286c900ff2893..d6e8637a98dd4c6ced13d78509b30ef563a34729 100644 (file)
 #include <openssl/bn.h>
 #include "fuzzer.h"
 
-int FuzzerInitialize(int *argc, char ***argv) {
+int FuzzerInitialize(int *argc, char ***argv)
+{
     return 1;
 }
 
-int FuzzerTestOneInput(const uint8_t *buf, size_t len) {
+int FuzzerTestOneInput(const uint8_t *buf, size_t len)
+{
     static BN_CTX *ctx;
-    static BN_MONT_CTX *mont;
     static BIGNUM *b1;
     static BIGNUM *b2;
     static BIGNUM *b3;
@@ -40,7 +41,6 @@ int FuzzerTestOneInput(const uint8_t *buf, size_t len) {
         b4 = BN_new();
         b5 = BN_new();
         ctx = BN_CTX_new();
-        mont = BN_MONT_CTX_new();
     }
     /* Divide the input into three parts, using the values of the first two
      * bytes to choose lengths, which generate b1, b2 and b3. Use three bits
@@ -94,3 +94,7 @@ int FuzzerTestOneInput(const uint8_t *buf, size_t len) {
 
     return 0;
 }
+
+void FuzzerCleanup(void)
+{
+}