aboutsummaryrefslogtreecommitdiff
path: root/src/test/fuzz/parse_iso8601.cpp
diff options
context:
space:
mode:
authorfanquake <fanquake@gmail.com>2021-05-10 14:18:35 +0800
committerfanquake <fanquake@gmail.com>2021-05-10 14:20:01 +0800
commit86e04741dd7faa525b38b5fab59cc0e7fc654972 (patch)
treeb6ffb5d6fa090936e22ee699310741d299a6de6d /src/test/fuzz/parse_iso8601.cpp
parent5925f1e652768a9502831b9ccf78d16cf3c37d29 (diff)
parentfa1aa6c571f406a2c40282664487aca4aff9dc9d (diff)
Merge bitcoin/bitcoin#21890: fuzz: Limit ParseISO8601DateTime fuzzing to 32-bit
fa1aa6c571f406a2c40282664487aca4aff9dc9d 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 fa1aa6c571f406a2c40282664487aca4aff9dc9d Tree-SHA512: fdd2fbc7b5c7ce33ad23b2e5431bb97eaf6ae8c2d2a55990a3ab73be79282c584b704dcd1471ba288de75283732970c70c9a03ddad059b97b66ba8b3de39effe
Diffstat (limited to 'src/test/fuzz/parse_iso8601.cpp')
-rw-r--r--src/test/fuzz/parse_iso8601.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/fuzz/parse_iso8601.cpp b/src/test/fuzz/parse_iso8601.cpp
index dcb24ac127..a56f2aa48d 100644
--- a/src/test/fuzz/parse_iso8601.cpp
+++ b/src/test/fuzz/parse_iso8601.cpp
@@ -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);