MCPcopy Create free account
hub / github.com/ElementsProject/elements / FUZZ_TARGET_INIT

Function FUZZ_TARGET_INIT

src/test/fuzz/addrman.cpp:40–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38}
39
40FUZZ_TARGET_INIT(data_stream_addr_man, initialize_addrman)
41{
42 FuzzedDataProvider fuzzed_data_provider{buffer.data(), buffer.size()};
43 CDataStream data_stream = ConsumeDataStream(fuzzed_data_provider);
44 AddrMan addr_man{/*asmap=*/std::vector<bool>(), /*deterministic=*/false, GetCheckRatio()};
45 try {
46 ReadFromStream(addr_man, data_stream);
47 } catch (const std::exception&) {
48 }
49}
50
51/**
52 * Generate a random address. Always returns a valid address.

Callers

nothing calls this directly

Calls 15

ConsumeDataStreamFunction · 0.85
ReadFromStreamFunction · 0.85
SetMockTimeFunction · 0.85
ConsumeTimeFunction · 0.85
ConsumeAsmapFunction · 0.85
CallOneOfFunction · 0.85
ConsumeWeakEnumFunction · 0.85
FillAddrmanFunction · 0.85
ConsumeBoolMethod · 0.80
ResolveCollisionsMethod · 0.80
SelectTriedCollisionMethod · 0.80

Tested by

no test coverage detected