Bitcoin Core  22.99.0
P2P Digital Currency
Macros | Functions
process_message.cpp File Reference
#include <banman.h>
#include <chainparams.h>
#include <consensus/consensus.h>
#include <net.h>
#include <net_processing.h>
#include <protocol.h>
#include <scheduler.h>
#include <script/script.h>
#include <streams.h>
#include <test/fuzz/FuzzedDataProvider.h>
#include <test/fuzz/fuzz.h>
#include <test/fuzz/util.h>
#include <test/util/mining.h>
#include <test/util/net.h>
#include <test/util/setup_common.h>
#include <test/util/validation.h>
#include <txorphanage.h>
#include <validationinterface.h>
#include <version.h>
#include <atomic>
#include <cassert>
#include <chrono>
#include <cstdint>
#include <iosfwd>
#include <iostream>
#include <memory>
#include <string>
Include dependency graph for process_message.cpp:

Go to the source code of this file.

Macros

#define FUZZ_TARGET_MSG(msg_type)
 

Functions

size_t & GetNumMsgTypes ()
 
void initialize_process_message ()
 
void fuzz_target (FuzzBufferType buffer, const std::string &LIMIT_TO_MESSAGE_TYPE)
 
 FUZZ_TARGET_INIT (process_message, initialize_process_message)
 
 FUZZ_TARGET_MSG (addr)
 
 FUZZ_TARGET_MSG (addrv2)
 
 FUZZ_TARGET_MSG (block)
 
 FUZZ_TARGET_MSG (blocktxn)
 
 FUZZ_TARGET_MSG (cfcheckpt)
 
 FUZZ_TARGET_MSG (cfheaders)
 
 FUZZ_TARGET_MSG (cfilter)
 
 FUZZ_TARGET_MSG (cmpctblock)
 
 FUZZ_TARGET_MSG (feefilter)
 
 FUZZ_TARGET_MSG (filteradd)
 
 FUZZ_TARGET_MSG (filterclear)
 
 FUZZ_TARGET_MSG (filterload)
 
 FUZZ_TARGET_MSG (getaddr)
 
 FUZZ_TARGET_MSG (getblocks)
 
 FUZZ_TARGET_MSG (getblocktxn)
 
 FUZZ_TARGET_MSG (getcfcheckpt)
 
 FUZZ_TARGET_MSG (getcfheaders)
 
 FUZZ_TARGET_MSG (getcfilters)
 
 FUZZ_TARGET_MSG (getdata)
 
 FUZZ_TARGET_MSG (getheaders)
 
 FUZZ_TARGET_MSG (headers)
 
 FUZZ_TARGET_MSG (inv)
 
 FUZZ_TARGET_MSG (mempool)
 
 FUZZ_TARGET_MSG (merkleblock)
 
 FUZZ_TARGET_MSG (notfound)
 
 FUZZ_TARGET_MSG (ping)
 
 FUZZ_TARGET_MSG (pong)
 
 FUZZ_TARGET_MSG (sendaddrv2)
 
 FUZZ_TARGET_MSG (sendcmpct)
 
 FUZZ_TARGET_MSG (sendheaders)
 
 FUZZ_TARGET_MSG (tx)
 
 FUZZ_TARGET_MSG (verack)
 
 FUZZ_TARGET_MSG (version)
 
 FUZZ_TARGET_MSG (wtxidrelay)
 

Macro Definition Documentation

◆ FUZZ_TARGET_MSG

#define FUZZ_TARGET_MSG (   msg_type)
Value:
struct msg_type##_Count_Before_Main { \
msg_type##_Count_Before_Main() \
{ \
} \
} const static g_##msg_type##_count_before_main; \
FUZZ_TARGET_INIT(process_message_##msg_type, initialize_process_message) \
{ \
fuzz_target(buffer, #msg_type); \
}

Definition at line 43 of file process_message.cpp.

Function Documentation

◆ fuzz_target()

void fuzz_target ( FuzzBufferType  buffer,
const std::string &  LIMIT_TO_MESSAGE_TYPE 
)

Definition at line 67 of file process_message.cpp.

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

◆ FUZZ_TARGET_INIT()

FUZZ_TARGET_INIT ( process_message  ,
initialize_process_message   
)

Definition at line 106 of file process_message.cpp.

Here is the call graph for this function:

◆ FUZZ_TARGET_MSG() [1/34]

FUZZ_TARGET_MSG ( addr  )

◆ FUZZ_TARGET_MSG() [2/34]

FUZZ_TARGET_MSG ( addrv2  )

◆ FUZZ_TARGET_MSG() [3/34]

FUZZ_TARGET_MSG ( block  )

◆ FUZZ_TARGET_MSG() [4/34]

FUZZ_TARGET_MSG ( blocktxn  )

◆ FUZZ_TARGET_MSG() [5/34]

FUZZ_TARGET_MSG ( cfcheckpt  )

◆ FUZZ_TARGET_MSG() [6/34]

FUZZ_TARGET_MSG ( cfheaders  )

◆ FUZZ_TARGET_MSG() [7/34]

FUZZ_TARGET_MSG ( cfilter  )

◆ FUZZ_TARGET_MSG() [8/34]

FUZZ_TARGET_MSG ( cmpctblock  )

◆ FUZZ_TARGET_MSG() [9/34]

FUZZ_TARGET_MSG ( feefilter  )

◆ FUZZ_TARGET_MSG() [10/34]

FUZZ_TARGET_MSG ( filteradd  )

◆ FUZZ_TARGET_MSG() [11/34]

FUZZ_TARGET_MSG ( filterclear  )

◆ FUZZ_TARGET_MSG() [12/34]

FUZZ_TARGET_MSG ( filterload  )

◆ FUZZ_TARGET_MSG() [13/34]

FUZZ_TARGET_MSG ( getaddr  )

◆ FUZZ_TARGET_MSG() [14/34]

FUZZ_TARGET_MSG ( getblocks  )

◆ FUZZ_TARGET_MSG() [15/34]

FUZZ_TARGET_MSG ( getblocktxn  )

◆ FUZZ_TARGET_MSG() [16/34]

FUZZ_TARGET_MSG ( getcfcheckpt  )

◆ FUZZ_TARGET_MSG() [17/34]

FUZZ_TARGET_MSG ( getcfheaders  )

◆ FUZZ_TARGET_MSG() [18/34]

FUZZ_TARGET_MSG ( getcfilters  )

◆ FUZZ_TARGET_MSG() [19/34]

FUZZ_TARGET_MSG ( getdata  )

◆ FUZZ_TARGET_MSG() [20/34]

FUZZ_TARGET_MSG ( getheaders  )

◆ FUZZ_TARGET_MSG() [21/34]

FUZZ_TARGET_MSG ( headers  )

◆ FUZZ_TARGET_MSG() [22/34]

FUZZ_TARGET_MSG ( inv  )

◆ FUZZ_TARGET_MSG() [23/34]

FUZZ_TARGET_MSG ( mempool  )

◆ FUZZ_TARGET_MSG() [24/34]

FUZZ_TARGET_MSG ( merkleblock  )

◆ FUZZ_TARGET_MSG() [25/34]

FUZZ_TARGET_MSG ( notfound  )

◆ FUZZ_TARGET_MSG() [26/34]

FUZZ_TARGET_MSG ( ping  )

◆ FUZZ_TARGET_MSG() [27/34]

FUZZ_TARGET_MSG ( pong  )

◆ FUZZ_TARGET_MSG() [28/34]

FUZZ_TARGET_MSG ( sendaddrv2  )

◆ FUZZ_TARGET_MSG() [29/34]

FUZZ_TARGET_MSG ( sendcmpct  )

◆ FUZZ_TARGET_MSG() [30/34]

FUZZ_TARGET_MSG ( sendheaders  )

◆ FUZZ_TARGET_MSG() [31/34]

FUZZ_TARGET_MSG ( tx  )

◆ FUZZ_TARGET_MSG() [32/34]

FUZZ_TARGET_MSG ( verack  )

◆ FUZZ_TARGET_MSG() [33/34]

FUZZ_TARGET_MSG ( version  )

◆ FUZZ_TARGET_MSG() [34/34]

FUZZ_TARGET_MSG ( wtxidrelay  )

◆ GetNumMsgTypes()

size_t& GetNumMsgTypes ( )

Definition at line 38 of file process_message.cpp.

Here is the caller graph for this function:

◆ initialize_process_message()

void initialize_process_message ( )

Definition at line 55 of file process_message.cpp.

Here is the call graph for this function:
initialize_process_message
void initialize_process_message()
Definition: process_message.cpp:55
GetNumMsgTypes
size_t & GetNumMsgTypes()
Definition: process_message.cpp:38