libfuzzer

package
v0.35.0 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2023 License: Apache-2.0 Imports: 22 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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 {
	Dictionary         string
	EngineArgs         []string
	EnvVars            []string
	FuzzTarget         string
	FuzzTestArgs       []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