Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add golang 1.14+ cmd/compile's native libfuzzer instrumentation support. #3633

Merged
merged 4 commits into from
Apr 14, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions infra/base-images/base-builder/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,13 @@ ENV GOPATH /root/go
# $GOPATH/bin is for the binaries from the dependencies installed via "go get".
ENV PATH $PATH:/root/.go/bin:$GOPATH/bin

# Dependency of go-fuzz.
RUN go get golang.org/x/tools/go/packages
# Uses golang 1.14+ cmd/compile's native libfuzzer instrumentation.
RUN go get -u github.com/mdempsky/go114-fuzz-build && \
ln -s $GOPATH/bin/go114-fuzz-build $GOPATH/bin/go-fuzz

# go-fuzz-build is the tool that instruments Go files.
# DEPRECATED go-fuzz implementation - github.com/dvyukov/go-fuzz-build based on
# source-to-source transformation.
RUN go get golang.org/x/tools/go/packages
RUN go get github.com/dvyukov/go-fuzz/go-fuzz-build

# Default build flags for various sanitizers.
Expand Down