Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Filtering in fuzz_target #3

Open
extf33 opened this issue Jun 6, 2023 · 2 comments
Open

Filtering in fuzz_target #3

extf33 opened this issue Jun 6, 2023 · 2 comments

Comments

@extf33
Copy link

extf33 commented Jun 6, 2023

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());
    }
});
@dwrensha
Copy link
Owner

dwrensha commented Jun 6, 2023

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.

@extf33
Copy link
Author

extf33 commented Jun 6, 2023

Oh, I see

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants