Skip to content
This repository was archived by the owner on Apr 30, 2021. It is now read-only.

Commit 118e572

Browse files
author
Yevgeny Pats
committed
bugfix in v2.4.58 for additional args support
1 parent 784178c commit 118e572

File tree

2 files changed

+15
-10
lines changed

2 files changed

+15
-10
lines changed

client/agent.go

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -186,13 +186,15 @@ func (c *FuzzitClient) runLibFuzzerFuzzing() error {
186186
"-exact_artifact_path=./artifact",
187187
"-error_exitcode=76",
188188
"-max_total_time=3600",
189+
"corpus",
190+
"seed",
189191
},
190-
append(
191-
strings.Split(c.currentJob.Args, " "),
192-
"corpus", "seed",
193-
)...,
194192
)
195193

194+
if c.currentJob.Args != "" {
195+
args = append(args, strings.Split(c.currentJob.Args, " ")...)
196+
}
197+
196198
var err error
197199
err = nil
198200
var exitCode int
@@ -305,11 +307,11 @@ func (c *FuzzitClient) runLibFuzzerRegression() error {
305307
"-exact_artifact_path=./artifact",
306308
"-error_exitcode=76",
307309
},
308-
append(
309-
strings.Split(c.currentJob.Args, " "),
310-
regressionFiles...,
311-
)...,
310+
regressionFiles...,
312311
)
312+
if c.currentJob.Args != "" {
313+
args = append(args, strings.Split(c.currentJob.Args, " ")...)
314+
}
313315

314316
log.Println("Running regression...")
315317
cmd := exec.Command("./fuzzer",
@@ -407,7 +409,10 @@ func (c *FuzzitClient) RunJQFFuzzing() error {
407409
"--libfuzzer-compat-output",
408410
"fuzzer",
409411
}
410-
args = append(args, strings.Split(c.currentJob.Args, " ")...)
412+
if c.currentJob.Args != "" {
413+
args = append(args, strings.Split(c.currentJob.Args, " ")...)
414+
}
415+
411416
path, err := exec.LookPath("java")
412417
if err != nil {
413418
return fmt.Errorf("java must be installed in the docker to run JQF fuzzer")

client/client.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import (
1111
)
1212

1313
const FuzzitEndpoint = "https://app.fuzzit.dev"
14-
const Version = "v2.4.58"
14+
const Version = "v2.4.59"
1515

1616
type Target struct {
1717
Name string `firestore:"target_name"`

0 commit comments

Comments
 (0)