...

Package coverage

import "github.com/AdamKorcz/go-118-fuzz-build/coverage"
Overview
Index

Overview ▾

func ConvertLibfuzzerSeedToGoSeed

func ConvertLibfuzzerSeedToGoSeed(fuzzerFileContents, testCase []byte, fuzzerName string) string

This is the API that should be called externally. Params: fuzzerFileContents: the contents of the fuzzerfile. This should be obtained with os.ReadFile(). testCase: The libFuzzer testcase. This should also be obtained with os.ReadFile().

type BodyWalker

type BodyWalker struct {
    // contains filtered or unexported fields
}

func (*BodyWalker) Visit

func (walker *BodyWalker) Visit(node ast.Node) ast.Visitor

type Walker

type Walker struct {
    // contains filtered or unexported fields
}

func (*Walker) Visit

func (walker *Walker) Visit(node ast.Node) ast.Visitor

Main walker func to traverse a fuzz harness when obtaining the fuzzers args. Does not add the first add (t *testing.T)