MCPcopy Create free account
hub / github.com/ElementsProject/elements / ConsumeBanTimeOffset

Function ConsumeBanTimeOffset

src/test/fuzz/banman.cpp:22–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20
21namespace {
22int64_t ConsumeBanTimeOffset(FuzzedDataProvider& fuzzed_data_provider) noexcept
23{
24 // Avoid signed integer overflow by capping to int32_t max:
25 // banman.cpp:137:73: runtime error: signed integer overflow: 1591700817 + 9223372036854775807 cannot be represented in type 'long'
26 return fuzzed_data_provider.ConsumeIntegralInRange<int64_t>(std::numeric_limits<int64_t>::min(), std::numeric_limits<int32_t>::max());
27}
28} // namespace
29
30void initialize_banman()

Callers 1

FUZZ_TARGET_INITFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected