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

Commit

Permalink
Improve support for additional corpus
Browse files Browse the repository at this point in the history
  • Loading branch information
Yevgeny Pats committed Oct 26, 2019
1 parent e91dc5c commit 567b3f3
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
7 changes: 3 additions & 4 deletions client/agent.go
Original file line number Diff line number Diff line change
Expand Up @@ -150,11 +150,10 @@ func (c *FuzzitClient) RunFuzzer(job Job, jobId string, updateDB bool) error {
return err
}
}
}

if err := createDirIfNotExist("additional-corpus"); err != nil {
return err
}

if err := createDirIfNotExist("additional-corpus"); err != nil {
return err
}

var err error
Expand Down
2 changes: 1 addition & 1 deletion client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
)

const FuzzitEndpoint = "https://app.fuzzit.dev"
const Version = "v2.4.74"
const Version = "v2.4.75"

type Target struct {
Name string `firestore:"target_name"`
Expand Down
6 changes: 6 additions & 0 deletions client/libfuzzer.go
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ func (c *FuzzitClient) runLibFuzzerFuzzing() error {
"-error_exitcode=76",
"-max_total_time=3600",
"corpus",
"additional-corpus",
"seed",
},
)
Expand Down Expand Up @@ -245,12 +246,17 @@ func (c *FuzzitClient) runLibFuzzerRegression() error {
if err != nil {
return err
}
additionalFiles, err := listFiles("additional-corpus")
if err != nil {
return err
}
seedFiles, err = listFiles("seed")
if err != nil {
return err
}

regressionFiles := append(corpusFiles, seedFiles...)
regressionFiles = append(regressionFiles, additionalFiles...)
if len(regressionFiles) == 0 {
log.Println("no files in corpus and seed. skipping run")
c.transitionStatus("pass")
Expand Down

0 comments on commit 567b3f3

Please sign in to comment.