Skip to content
Snippets Groups Projects
Commit 2782613e authored by Jason Hiser's avatar Jason Hiser :tractor:
Browse files

updated to properly extract binary files from inputs

parent bf9989e4
No related branches found
No related tags found
No related merge requests found
Pipeline #4656 failed
......@@ -82,11 +82,11 @@ int32_t AflFuzz_t::getAllInputs()
return 1;
}
const auto& file_contents = file["contents"].as<string>() ;
const auto& file_contents = file["contents"].as<YAML::Binary>() ;
cout << "Found file named: " << file["name"].as<string>() << " of size " << file_contents.size() << endl;
input_files.push_back(file_contents);
input_files.push_back({file_contents.c_str(), file_contents.size()});
}
flat_input_to_id_map[input_files]=input.id;
flat_inputs.insert(input_files);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment