From 33b0f3ae966ffa50b55489eb867c4d93c0ed3489 Mon Sep 17 00:00:00 2001 From: brunoerg Date: Fri, 1 Mar 2024 18:38:48 -0300 Subject: [PATCH] fuzz: use `ConsumeNetGroupManager` in connman target --- src/test/fuzz/connman.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/test/fuzz/connman.cpp b/src/test/fuzz/connman.cpp index a3914bfcf31..2537869b3d7 100644 --- a/src/test/fuzz/connman.cpp +++ b/src/test/fuzz/connman.cpp @@ -38,7 +38,7 @@ FUZZ_TARGET(connman, .init = initialize_connman) { FuzzedDataProvider fuzzed_data_provider{buffer.data(), buffer.size()}; SetMockTime(ConsumeTime(fuzzed_data_provider)); - auto netgroupman{*g_setup->m_node.netgroupman}; + auto netgroupman{ConsumeNetGroupManager(fuzzed_data_provider)}; auto addr_man_ptr{std::make_unique(netgroupman, fuzzed_data_provider, GetCheckRatio())}; if (fuzzed_data_provider.ConsumeBool()) { const std::vector serialized_data{ConsumeRandomLengthByteVector(fuzzed_data_provider)}; @@ -53,7 +53,7 @@ FUZZ_TARGET(connman, .init = initialize_connman) ConnmanTestMsg connman{fuzzed_data_provider.ConsumeIntegral(), fuzzed_data_provider.ConsumeIntegral(), addr_man, - *g_setup->m_node.netgroupman, + netgroupman, Params(), fuzzed_data_provider.ConsumeBool()};