File tree Expand file tree Collapse file tree 2 files changed +8
-7
lines changed Expand file tree Collapse file tree 2 files changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -39,13 +39,6 @@ void initialize_addrman()
3939 g_setup = testing_setup.get ();
4040}
4141
42- [[nodiscard]] inline NetGroupManager ConsumeNetGroupManager (FuzzedDataProvider& fuzzed_data_provider) noexcept
43- {
44- std::vector<bool > asmap = ConsumeRandomLengthBitVector (fuzzed_data_provider);
45- if (!SanityCheckASMap (asmap, 128 )) asmap.clear ();
46- return NetGroupManager (asmap);
47- }
48-
4942FUZZ_TARGET (data_stream_addr_man, .init = initialize_addrman)
5043{
5144 FuzzedDataProvider fuzzed_data_provider{buffer.data (), buffer.size ()};
Original file line number Diff line number Diff line change 1717#include < test/fuzz/util.h>
1818#include < test/util/net.h>
1919#include < threadsafety.h>
20+ #include < util/asmap.h>
2021#include < util/sock.h>
2122
2223#include < chrono>
@@ -197,6 +198,13 @@ class FuzzedSock : public Sock
197198 return FuzzedSock{fuzzed_data_provider};
198199}
199200
201+ [[nodiscard]] inline NetGroupManager ConsumeNetGroupManager (FuzzedDataProvider& fuzzed_data_provider) noexcept
202+ {
203+ std::vector<bool > asmap = ConsumeRandomLengthBitVector (fuzzed_data_provider);
204+ if (!SanityCheckASMap (asmap, 128 )) asmap.clear ();
205+ return NetGroupManager (asmap);
206+ }
207+
200208inline CSubNet ConsumeSubNet (FuzzedDataProvider& fuzzed_data_provider) noexcept
201209{
202210 return {ConsumeNetAddr (fuzzed_data_provider), fuzzed_data_provider.ConsumeIntegral <uint8_t >()};
You can’t perform that action at this time.
0 commit comments