libfuzzer

package
v0.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 24, 2022 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MaxBufferedReports = 10

	// ExitGracePeriod is time we give libfuzzer to exit after
	// max_total_time was exceeded.
	// Must be more than 2 seconds, because in the CI it happened that
	// libfuzzer did not exit within 2 seconds.
	ExitGracePeriod = time.Second * 5
)

Variables

This section is empty.

Functions

func IsExpectedExitError

func IsExpectedExitError(err error) bool

Types

type Runner

type Runner struct {
	*RunnerOptions
	SupportJazzer bool
	// contains filtered or unexported fields
}

func NewRunner

func NewRunner(options *RunnerOptions) *Runner

func (*Runner) Cleanup

func (r *Runner) Cleanup(ctx context.Context)

func (*Runner) FuzzerEnvironment

func (r *Runner) FuzzerEnvironment() ([]string, error)

func (*Runner) Run

func (r *Runner) Run(ctx context.Context) error

func (*Runner) RunLibfuzzerAndReport

func (r *Runner) RunLibfuzzerAndReport(ctx context.Context, args []string, env []string) error

type RunnerOptions

type RunnerOptions struct {
	FuzzTarget         string
	GeneratedCorpusDir string
	SeedCorpusDirs     []string
	Dictionary         string
	LibraryDirs        []string
	ReadOnlyBindings   []string
	EnvVars            []string
	EngineArgs         []string
	FuzzTestArgs       []string
	ReportHandler      report.Handler
	Timeout            time.Duration
	UseMinijail        bool
	Verbose            bool
	KeepColor          bool
	LogOutput          io.Writer
}

func (*RunnerOptions) ValidateOptions

func (options *RunnerOptions) ValidateOptions() error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL