Bitcoin Core  22.99.0
P2P Digital Currency
Functions | Variables
fuzz.cpp File Reference
#include <test/fuzz/fuzz.h>
#include <netaddress.h>
#include <netbase.h>
#include <test/util/setup_common.h>
#include <util/check.h>
#include <util/sock.h>
#include <cstdint>
#include <exception>
#include <memory>
#include <string>
#include <unistd.h>
#include <vector>
Include dependency graph for fuzz.cpp:

Go to the source code of this file.

Functions

std::map< std::string_view, std::tuple< TypeTestOneInput, TypeInitialize, TypeHidden > > & FuzzTargets ()
 
void FuzzFrameworkRegisterTarget (std::string_view name, TypeTestOneInput target, TypeInitialize init, TypeHidden hidden)
 
void initialize ()
 
int LLVMFuzzerTestOneInput (const uint8_t *data, size_t size)
 
int LLVMFuzzerInitialize (int *argc, char ***argv)
 

Variables

const std::function< void(const std::string &)> G_TEST_LOG_FUN {}
 This is connected to the logger. More...
 
static TypeTestOneInputg_test_one_input {nullptr}
 

Function Documentation

◆ FuzzFrameworkRegisterTarget()

void FuzzFrameworkRegisterTarget ( std::string_view  name,
TypeTestOneInput  target,
TypeInitialize  init,
TypeHidden  hidden 
)

Definition at line 28 of file fuzz.cpp.

Here is the call graph for this function:

◆ FuzzTargets()

std::map<std::string_view, std::tuple<TypeTestOneInput, TypeInitialize, TypeHidden> >& FuzzTargets ( )

Definition at line 22 of file fuzz.cpp.

Here is the caller graph for this function:

◆ initialize()

void initialize ( )

Definition at line 36 of file fuzz.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ LLVMFuzzerInitialize()

int LLVMFuzzerInitialize ( int *  argc,
char ***  argv 
)

Definition at line 96 of file fuzz.cpp.

Here is the call graph for this function:

◆ LLVMFuzzerTestOneInput()

int LLVMFuzzerTestOneInput ( const uint8_t *  data,
size_t  size 
)

Definition at line 88 of file fuzz.cpp.

Variable Documentation

◆ G_TEST_LOG_FUN

const std::function<void(const std::string&)> G_TEST_LOG_FUN {}

This is connected to the logger.

Can be used to redirect logs to any other log

Definition at line 20 of file fuzz.cpp.

◆ g_test_one_input

TypeTestOneInput* g_test_one_input {nullptr}
static

Definition at line 34 of file fuzz.cpp.