mirror of
https://github.com/dashpay/dash.git
synced 2024-12-25 03:52:49 +01:00
fuzz: correct CAddrMan GetAddr
arguments, cap to 4096
This commit is contained in:
parent
7f2fb78ded
commit
49805c11a5
@ -61,7 +61,7 @@ FUZZ_TARGET_INIT(addrman, initialize_addrman)
|
||||
(void)addr_man.Select(fuzzed_data_provider.ConsumeBool());
|
||||
},
|
||||
[&] {
|
||||
(void)addr_man.GetAddr(fuzzed_data_provider.ConsumeIntegral<size_t>(), fuzzed_data_provider.ConsumeIntegral<size_t>());
|
||||
(void)addr_man.GetAddr(fuzzed_data_provider.ConsumeIntegralInRange<size_t>(0, 4096), fuzzed_data_provider.ConsumeIntegralInRange<size_t>(0, 4096));
|
||||
},
|
||||
[&] {
|
||||
const std::optional<CAddress> opt_address = ConsumeDeserializable<CAddress>(fuzzed_data_provider);
|
||||
|
Loading…
Reference in New Issue
Block a user