From cbbb4b3e087b2bc5d93f9124deaf78b6e01d04de Mon Sep 17 00:00:00 2001 From: Julien Cretin Date: Fri, 27 Aug 2021 20:59:35 +0200 Subject: [PATCH] Reduce the store fuzzer input length --- libraries/persistent_store/fuzz/src/store.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/persistent_store/fuzz/src/store.rs b/libraries/persistent_store/fuzz/src/store.rs index c5be772..b10c495 100644 --- a/libraries/persistent_store/fuzz/src/store.rs +++ b/libraries/persistent_store/fuzz/src/store.rs @@ -38,7 +38,7 @@ pub fn fuzz(mut data: &[u8], debug: bool, stats: Option<&mut Stats>) { // length and timeout after 1 minute. By default, libFuzzer has a maximum length of 4096 bytes. // We use a number between 4096 bytes and 1 minute, ideally such that the proportion of inputs // timing out in oss-fuzz is around 1%. - const MAX_DATA_LEN: usize = 50_000; + const MAX_DATA_LEN: usize = 20_000; if data.len() > MAX_DATA_LEN { data = &data[..MAX_DATA_LEN]; }