Skip to content

Commit 86e0474

Browse files
committed
Merge bitcoin/bitcoin#21890: fuzz: Limit ParseISO8601DateTime fuzzing to 32-bit
fa1aa6c fuzz: Limit ParseISO8601DateTime fuzzing to 32-bit (MarcoFalke) Pull request description: 2038 is more than 10 years in the future, so no need for us to waste time fuzzing a 3rd party lib that will be EOL by then. Hopefully fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=34092 ACKs for top commit: theStack: Concept and code review ACK fa1aa6c Tree-SHA512: fdd2fbc7b5c7ce33ad23b2e5431bb97eaf6ae8c2d2a55990a3ab73be79282c584b704dcd1471ba288de75283732970c70c9a03ddad059b97b66ba8b3de39effe
2 parents 5925f1e + fa1aa6c commit 86e0474

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test/fuzz/parse_iso8601.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ FUZZ_TARGET(parse_iso8601)
1515
{
1616
FuzzedDataProvider fuzzed_data_provider(buffer.data(), buffer.size());
1717

18-
const int64_t random_time = fuzzed_data_provider.ConsumeIntegral<int64_t>();
18+
const int64_t random_time = fuzzed_data_provider.ConsumeIntegral<int32_t>();
1919
const std::string random_string = fuzzed_data_provider.ConsumeRemainingBytesAsString();
2020

2121
const std::string iso8601_datetime = FormatISO8601DateTime(random_time);

0 commit comments

Comments
 (0)