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()
39
39
g_setup = testing_setup.get ();
40
40
}
41
41
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
-
49
42
FUZZ_TARGET (data_stream_addr_man, .init = initialize_addrman)
50
43
{
51
44
FuzzedDataProvider fuzzed_data_provider{buffer.data (), buffer.size ()};
Original file line number Diff line number Diff line change 17
17
#include < test/fuzz/util.h>
18
18
#include < test/util/net.h>
19
19
#include < threadsafety.h>
20
+ #include < util/asmap.h>
20
21
#include < util/sock.h>
21
22
22
23
#include < chrono>
@@ -197,6 +198,13 @@ class FuzzedSock : public Sock
197
198
return FuzzedSock{fuzzed_data_provider};
198
199
}
199
200
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
+
200
208
inline CSubNet ConsumeSubNet (FuzzedDataProvider& fuzzed_data_provider) noexcept
201
209
{
202
210
return {ConsumeNetAddr (fuzzed_data_provider), fuzzed_data_provider.ConsumeIntegral <uint8_t >()};
You can’t perform that action at this time.
0 commit comments