13 static bool read_stdin(std::vector<uint8_t>& data)
17 while ((length = read(STDIN_FILENO,
buffer, 1024)) > 0) {
20 if (data.size() > (1 << 20))
return false;
25 static void initialize()
27 const static auto verify_handle = std::make_unique<ECCVerifyHandle>();
63 while (__AFL_LOOP(1000)) {
64 std::vector<uint8_t>
buffer;
int main(int argc, char **argv)
void SelectParams(const std::string &network)
Sets the params returned by Params() to those for the given chain name.
static const std::string MAIN
Chain name strings.
std::vector< uint8_t > buffer
int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size)
int LLVMFuzzerInitialize(int *argc, char ***argv)
__attribute__((weak)) int main(int argc