tests: Allow for using non-default fuzzing initialization

pull/17018/head
practicalswift 5 years ago
parent c34b88620d
commit fdef8bbf2f

@ -22,7 +22,9 @@ static bool read_stdin(std::vector<uint8_t>& data)
return length == 0;
}
static void initialize()
// Default initialization: Override using a non-weak initialize().
__attribute__((weak))
void initialize()
{
const static auto verify_handle = MakeUnique<ECCVerifyHandle>();
}

@ -8,7 +8,7 @@
#include <stdint.h>
#include <vector>
void initialize();
void test_one_input(const std::vector<uint8_t>& buffer);
#endif // BITCOIN_TEST_FUZZ_FUZZ_H

Loading…
Cancel
Save