mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-08-31 01:51:10 +02:00
fuzz: Use ConsumeWeakEnum in addrman for service flags
This commit is contained in:
@@ -104,7 +104,7 @@ FUZZ_TARGET_INIT(addrman, initialize_addrman)
|
|||||||
[&] {
|
[&] {
|
||||||
const std::optional<CService> opt_service = ConsumeDeserializable<CService>(fuzzed_data_provider);
|
const std::optional<CService> opt_service = ConsumeDeserializable<CService>(fuzzed_data_provider);
|
||||||
if (opt_service) {
|
if (opt_service) {
|
||||||
addr_man.SetServices(*opt_service, ServiceFlags{fuzzed_data_provider.ConsumeIntegral<uint64_t>()});
|
addr_man.SetServices(*opt_service, ConsumeWeakEnum(fuzzed_data_provider, ALL_SERVICE_FLAGS));
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
[&] {
|
[&] {
|
||||||
|
Reference in New Issue
Block a user