| 20 | |
| 21 | namespace { |
| 22 | int64_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 | |
| 30 | void initialize_banman() |