| 38 | } |
| 39 | |
| 40 | FUZZ_TARGET_INIT(data_stream_addr_man, initialize_addrman) |
| 41 | { |
| 42 | FuzzedDataProvider fuzzed_data_provider{buffer.data(), buffer.size()}; |
| 43 | CDataStream data_stream = ConsumeDataStream(fuzzed_data_provider); |
| 44 | AddrMan addr_man{/*asmap=*/std::vector<bool>(), /*deterministic=*/false, GetCheckRatio()}; |
| 45 | try { |
| 46 | ReadFromStream(addr_man, data_stream); |
| 47 | } catch (const std::exception&) { |
| 48 | } |
| 49 | } |
| 50 | |
| 51 | /** |
| 52 | * Generate a random address. Always returns a valid address. |
nothing calls this directly
no test coverage detected