File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -257,7 +257,7 @@ inline CAddress ConsumeAddress(FuzzedDataProvider& fuzzed_data_provider) noexcep
257
257
template <bool ReturnUniquePtr = false >
258
258
auto ConsumeNode (FuzzedDataProvider& fuzzed_data_provider, const std::optional<NodeId>& node_id_in = std::nullopt) noexcept
259
259
{
260
- const NodeId node_id = node_id_in.value_or (fuzzed_data_provider.ConsumeIntegral <NodeId>());
260
+ const NodeId node_id = node_id_in.value_or (fuzzed_data_provider.ConsumeIntegralInRange <NodeId>(0 , std::numeric_limits<NodeId>:: max () ));
261
261
const ServiceFlags local_services = ConsumeWeakEnum (fuzzed_data_provider, ALL_SERVICE_FLAGS);
262
262
const SOCKET socket = INVALID_SOCKET;
263
263
const CAddress address = ConsumeAddress (fuzzed_data_provider);
You can’t perform that action at this time.
0 commit comments