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

Function FUZZ_TARGET

src/test/fuzz/parse_hd_keypath.cpp:13–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11#include <vector>
12
13FUZZ_TARGET(parse_hd_keypath)
14{
15 const std::string keypath_str(buffer.begin(), buffer.end());
16 std::vector<uint32_t> keypath;
17 (void)ParseHDKeypath(keypath_str, keypath);
18
19 FuzzedDataProvider fuzzed_data_provider(buffer.data(), buffer.size());
20 const std::vector<uint32_t> random_keypath = ConsumeRandomLengthIntegralVector<uint32_t>(fuzzed_data_provider);
21 (void)FormatHDKeypath(random_keypath);
22 (void)WriteHDKeypath(random_keypath);
23}

Callers

nothing calls this directly

Calls 7

ParseHDKeypathFunction · 0.85
FormatHDKeypathFunction · 0.85
WriteHDKeypathFunction · 0.85
beginMethod · 0.45
endMethod · 0.45
dataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected