File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -38,6 +38,10 @@ FUZZ_TARGET(connman, .init = initialize_connman)
38
38
*g_setup->m_node .netgroupman ,
39
39
Params (),
40
40
fuzzed_data_provider.ConsumeBool ()};
41
+
42
+ const uint64_t max_outbound_limit{fuzzed_data_provider.ConsumeIntegral <uint64_t >()};
43
+ connman.Init ({ .nMaxOutboundLimit = max_outbound_limit });
44
+
41
45
CNetAddr random_netaddr;
42
46
CNode random_node = ConsumeNode (fuzzed_data_provider);
43
47
CSubNet random_subnet;
@@ -125,7 +129,7 @@ FUZZ_TARGET(connman, .init = initialize_connman)
125
129
(void )connman.GetAddedNodeInfo (fuzzed_data_provider.ConsumeBool ());
126
130
(void )connman.GetExtraFullOutboundCount ();
127
131
(void )connman.GetLocalServices ();
128
- ( void ) connman.GetMaxOutboundTarget ();
132
+ assert ( connman.GetMaxOutboundTarget () == max_outbound_limit );
129
133
(void )connman.GetMaxOutboundTimeframe ();
130
134
(void )connman.GetMaxOutboundTimeLeftInCycle ();
131
135
(void )connman.GetNetworkActive ();
You can’t perform that action at this time.
0 commit comments