libfuzzer

package
v0.40.0 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2023 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
	SupportJazzerJS 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 {
	Dictionary         string
	EngineArgs         []string
	EnvVars            []string
	FuzzTarget         string
	GeneratedCorpusDir string
	KeepColor          bool
	LibraryDirs        []string
	LogOutput          io.Writer
	ProjectDir         string
	ReadOnlyBindings   []string
	ReportHandler      report.Handler
	SeedCorpusDirs     []string
	Timeout            time.Duration
	UseMinijail        bool
	Verbose            bool
}

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