fuzz-rustc icon indicating copy to clipboard operation
fuzz-rustc copied to clipboard

Filtering in `fuzz_target`

Open extf33 opened this issue 1 year ago • 2 comments

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());
    }
});

extf33 avatar Jun 06 '23 12:06 extf33

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.

dwrensha avatar Jun 06 '23 12:06 dwrensha

Oh, I see

extf33 avatar Jun 06 '23 12:06 extf33