limit to 32 bytes

This commit is contained in:
Alwin Berger 2022-02-03 21:43:09 +01:00
parent 9a1251875f
commit 1edc70c6f1

View File

@ -293,9 +293,9 @@ fn fuzz(
let target = input.target_bytes(); let target = input.target_bytes();
let mut buf = target.as_slice(); let mut buf = target.as_slice();
let mut len = buf.len(); let mut len = buf.len();
if len > 4096 { if len > 32 {
buf = &buf[0..4096]; buf = &buf[0..32];
len = 4096; len = 32;
} }
unsafe { unsafe {