Skip to content

libFuzzer support #213

@guidovranken

Description

@guidovranken

Let's continue here.

This is what I have now: https://github.com/guidovranken/go-fuzz/tree/libfuzzer-mode

clang -fsanitize=fuzzer-no-link -c $GOPATH/src/github.com/dvyukov/go-fuzz/C/main_libFuzzer_extra_counters.c
go build github.com/dvyukov/go-fuzz/go-fuzz-build
./go-fuzz-build -libfuzzer <pkg>
clang++ -fsanitize=fuzzer main_libFuzzer_extra_counters.o <generated archive.a> -o fuzzer

I retained the original functionality in go-fuzz-build/main.go, but removed what wasn't needed in go-fuzz-deps/main.go for now. Maybe we can have a go-fuzz-deps-libFuzzer directory for when -libfuzzer is specified?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions