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

Commit 567b3f3

Browse files
author
Yevgeny Pats
committed
Improve support for additional corpus
1 parent e91dc5c commit 567b3f3

File tree

3 files changed

+10
-5
lines changed

3 files changed

+10
-5
lines changed

client/agent.go

+3-4
Original file line numberDiff line numberDiff line change
@@ -150,11 +150,10 @@ func (c *FuzzitClient) RunFuzzer(job Job, jobId string, updateDB bool) error {
150150
return err
151151
}
152152
}
153+
}
153154

154-
if err := createDirIfNotExist("additional-corpus"); err != nil {
155-
return err
156-
}
157-
155+
if err := createDirIfNotExist("additional-corpus"); err != nil {
156+
return err
158157
}
159158

160159
var err error

client/client.go

+1-1
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.74"
14+
const Version = "v2.4.75"
1515

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

client/libfuzzer.go

+6
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,7 @@ func (c *FuzzitClient) runLibFuzzerFuzzing() error {
143143
"-error_exitcode=76",
144144
"-max_total_time=3600",
145145
"corpus",
146+
"additional-corpus",
146147
"seed",
147148
},
148149
)
@@ -245,12 +246,17 @@ func (c *FuzzitClient) runLibFuzzerRegression() error {
245246
if err != nil {
246247
return err
247248
}
249+
additionalFiles, err := listFiles("additional-corpus")
250+
if err != nil {
251+
return err
252+
}
248253
seedFiles, err = listFiles("seed")
249254
if err != nil {
250255
return err
251256
}
252257

253258
regressionFiles := append(corpusFiles, seedFiles...)
259+
regressionFiles = append(regressionFiles, additionalFiles...)
254260
if len(regressionFiles) == 0 {
255261
log.Println("no files in corpus and seed. skipping run")
256262
c.transitionStatus("pass")

0 commit comments

Comments
 (0)