fuzz-rustc
fuzz-rustc copied to clipboard
Filtering in `fuzz_target`
Why did you filter out 0xc, 0xd, 0xb and derive in fuzz_target
?
fuzz_target!(|data: &[u8]| {
if data.contains(&0x0c) || data.contains(&0x0d) || data.contains(&0x0b) /*|| data.contains (&b'&')*/ {
return;
}
if let Ok(t) = std::str::from_utf8(data) {
if let Some(_) = t.find("derive") {
return;
}
main_fuzz(data.into());
}
});
Those characters were giving me lots of crashes or out-of-memory errors that looked relatively uninteresting. I was worried about spamming the rustc repo with issues that seemed trivial. Possibly I was being too cautious.
Oh, I see