Reduce maximum fuzz input size
The fuzzer timed out (60s) on a 17k input. On my machine it runs for 12s and 7s after truncation to 10k.
This commit is contained in:
committed by
Julien Cretin
parent
d47ca7fa54
commit
8a2e99960f
@@ -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 = 20_000;
|
||||
const MAX_DATA_LEN: usize = 10_000;
|
||||
if data.len() > MAX_DATA_LEN {
|
||||
data = &data[..MAX_DATA_LEN];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user