From 3d4b652e1242c3c836cd4e8b57340dd3562f693d Mon Sep 17 00:00:00 2001 From: Julien Cretin Date: Thu, 5 Aug 2021 14:29:21 +0200 Subject: [PATCH] Increase the max data len from 10k to 100k --- 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 e4e4b4e..5405072 100644 --- a/libraries/persistent_store/fuzz/src/store.rs +++ b/libraries/persistent_store/fuzz/src/store.rs @@ -37,7 +37,7 @@ pub fn fuzz(mut data: &[u8], debug: bool, stats: Option<&mut Stats>) { // We limit the input size to avoid timeouts in oss-fuzz because they use inputs of arbitrary // length and timeout after 1 minute. By default, libFuzzer has a maximum length of 4096 bytes. // So we just use some number above 4096 bytes and below 1 minute (might need adjustments). - const MAX_DATA_LEN: usize = 10000; + const MAX_DATA_LEN: usize = 100_000; if data.len() > MAX_DATA_LEN { data = &data[..MAX_DATA_LEN]; }