Skip to content

Commit

Permalink
Merge bitcoin/bitcoin#29211: fuzz: fix connman initialization
Browse files Browse the repository at this point in the history
e84dc36 fuzz: fix `connman` initialization (brunoerg)

Pull request description:

  Fixes bitcoin/bitcoin#29172 (comment)

ACKs for top commit:
  achow101:
    ACK e84dc36

Tree-SHA512: e5f3c378cfe367cc4c387fa1b13663a74d8b667a5d130d62919e21455861cfb9383b63ef4ebe56daab7b2c09e3b5031acc463065455f71607c5fb9e3c370d3ad
  • Loading branch information
achow101 committed Jan 10, 2024
2 parents 7ff8e6b + e84dc36 commit 507dbe4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/test/fuzz/connman.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,9 @@ FUZZ_TARGET(connman, .init = initialize_connman)
fuzzed_data_provider.ConsumeBool()};

const uint64_t max_outbound_limit{fuzzed_data_provider.ConsumeIntegral<uint64_t>()};
connman.Init({ .nMaxOutboundLimit = max_outbound_limit });
CConnman::Options options;
options.nMaxOutboundLimit = max_outbound_limit;
connman.Init(options);

CNetAddr random_netaddr;
CNode random_node = ConsumeNode(fuzzed_data_provider);
Expand Down

0 comments on commit 507dbe4

Please sign in to comment.