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

Fix passing user defined args to libfuzzer job #44

Merged
merged 2 commits into from Sep 26, 2019
Merged
Changes from 1 commit
Commits
File filter...
Filter file types
Jump to…
Jump to file
Failed to load files.

Always

Just for now

Next

Append user defined args to libfuzzer job

  • Loading branch information
bayandin committed Sep 26, 2019
commit e1df2aeb37963a1f0eea4d941508443dafbe0f19
@@ -180,14 +180,18 @@ func (c *FuzzitClient) uploadCrash(exitCode int) error {
func (c *FuzzitClient) runLibFuzzerFuzzing() error {
ctx := context.Background()

args := []string{
"-print_final_stats=1",
"-exact_artifact_path=./artifact",
"-error_exitcode=76",
"-max_total_time=3600",
"corpus",
"seed",
}
args := append(
[]string{
"-print_final_stats=1",
"-exact_artifact_path=./artifact",
"-error_exitcode=76",
"-max_total_time=3600",
},
append(
strings.Split(c.currentJob.Args, " "),
"corpus", "seed",
)...,
)

var err error
err = nil
@@ -295,11 +299,18 @@ func (c *FuzzitClient) runLibFuzzerRegression() error {
return nil
}

args := append([]string{
"-print_final_stats=1",
"-exact_artifact_path=./artifact",
"-error_exitcode=76",
}, regressionFiles...)
args := append(
[]string{
"-print_final_stats=1",
"-exact_artifact_path=./artifact",
"-error_exitcode=76",
},
append(
strings.Split(c.currentJob.Args, " "),
regressionFiles...,
)...,
)

log.Println("Running regression...")
cmd := exec.Command("./fuzzer",
args...)
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.