fuzz: Limit ParseISO8601DateTime fuzzing to 32-bit

This commit is contained in:
MarcoFalke 2021-05-09 10:15:00 +02:00
parent 5925f1e652
commit fa1aa6c571
No known key found for this signature in database
GPG Key ID: CE2B75697E69A548

View File

@ -15,7 +15,7 @@ FUZZ_TARGET(parse_iso8601)
{
FuzzedDataProvider fuzzed_data_provider(buffer.data(), buffer.size());
const int64_t random_time = fuzzed_data_provider.ConsumeIntegral<int64_t>();
const int64_t random_time = fuzzed_data_provider.ConsumeIntegral<int32_t>();
const std::string random_string = fuzzed_data_provider.ConsumeRemainingBytesAsString();
const std::string iso8601_datetime = FormatISO8601DateTime(random_time);