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

added afl-skip-bin-checks env var when invoking afl-fuzz

parent 9a2f96da
No related branches found
No related tags found
No related merge requests found
......@@ -262,18 +262,23 @@ string AflFuzz_t::getAflCmd()
const auto working_dir = fuzz_config["working-dir"].as<string>();
auto cmd = string() ; /* + "cd " + working_dir + " ; "; -- no cd because relative paths need to be respected in the seeds/inputs/configs */
cmd += "env AFL_ALLOW_TMP=1 AFL_SKIP_CRASHES=1 ";
cmd += "env AFL_ALLOW_TMP=1 AFL_SKIP_BIN_CHECK=1 AFL_SKIP_CRASHES=1 ";
if( app_config["ld-path-prepend-version"] )
cmd += " LD_LIBRARY_PATH="+working_dir+"/lib/ " ;
cmd += "timeout " + to_string(fuzzing_time) + " afl-fuzz -i "+working_dir+"/in -o "+working_dir+"/out ";
cmd += "-t " + to_string(input_timeout*1000);
cmd += "-- ";
cmd += " -- ";
const auto cmd_lines = generateCmdLines();
if(cmd_lines.size() != 1)
{
cout << "Commands lines are: " << endl;
for(auto cmd_line : cmd_lines)
{
cout << "\t" << cmd_line << endl;
}
// todo: check for back-end specific flag to say which cmd-line to fuzz.
throw invalid_argument( "AFL backend must use exactly 1 cmd line. ");
}
......
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