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

Function FUZZ_TARGET

src/test/fuzz/tx_in.cpp:15–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13#include <cassert>
14
15FUZZ_TARGET(tx_in)
16{
17 CDataStream ds(buffer, SER_NETWORK, INIT_PROTO_VERSION);
18 CTxIn tx_in;
19 try {
20 int version;
21 ds >> version;
22 ds.SetVersion(version);
23 ds >> tx_in;
24 } catch (const std::ios_base::failure&) {
25 return;
26 }
27
28 (void)RecursiveDynamicUsage(tx_in);
29
30 (void)tx_in.ToString();
31}

Callers

nothing calls this directly

Calls 3

RecursiveDynamicUsageFunction · 0.85
SetVersionMethod · 0.45
ToStringMethod · 0.45

Tested by

no test coverage detected