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

Process libFuzzer tree corpus directory #150

Closed
Avgor46 opened this issue Sep 20, 2023 · 2 comments
Closed

Process libFuzzer tree corpus directory #150

Avgor46 opened this issue Sep 20, 2023 · 2 comments
Assignees
Labels
bug Something isn't working help wanted Extra attention is needed question Further information is requested
Milestone

Comments

@Avgor46
Copy link
Member

Avgor46 commented Sep 20, 2023

We should look into the problem where we have a libFuzzer tree corpus directory with repeating filenames. Is this possible and what should we do with duplicate filenames?

@Avgor46 Avgor46 added help wanted Extra attention is needed question Further information is requested labels Sep 20, 2023
@SweetVishnya SweetVishnya added the bug Something isn't working label Sep 20, 2023
@SweetVishnya
Copy link
Collaborator

We may do something similar when there are subdirectories in corpus:

let dir_name = input.parent().unwrap().file_name().unwrap();
let input_name = input.file_name().unwrap();
let crashline = report.crashline;
let crashline = crashline.split('/').last().unwrap();
let crashline = crashline.replace(':', "_");
// Copy input
let mut input_path = PathBuf::new();
input_path.push(output_dir);
input_path.push(format!(
"{}_{}",
dir_name.to_str().unwrap(),
input_name.to_str().unwrap()
));

@anfedotoff anfedotoff added this to the v2.9.0 milestone Oct 5, 2023
@SweetVishnya
Copy link
Collaborator

I just realized that I was wrong -- libFuzzer crash directory is always flat

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants