Skip to content

Commit

Permalink
Fix fuzz code
Browse files Browse the repository at this point in the history
  • Loading branch information
fasterthanlime committed Apr 18, 2018
1 parent a901748 commit a708ea6
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions fuzz.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,16 @@ package boar

import (
"github.com/itchio/boar/memfs"
"github.com/itchio/wharf/state"
)

_dummyConsumer := &state.Consumer{}
var _dummyConsumer = &state.Consumer{}

func Fuzz(data []byte) int {
file := memfs.New(data, "data")
params := &ProbeParams{
File: file,
Consumer: dummyConsumer,
File: file,
Consumer: _dummyConsumer,
}

if _, err := Probe(params); err != nil {
Expand Down

0 comments on commit a708ea6

Please sign in to comment.