[syzkaller] Make report_fuzzer build successfully and move deps to the Dockerfile. (#2721)

This commit is contained in:
Max Moroz 2019-08-19 07:04:20 -07:00 committed by GitHub
parent 2cb6fe0085
commit 0fa92706ef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 9 deletions

View File

@ -23,6 +23,15 @@ ENV PATH $SRC/go/bin:$GOPATH/bin:$PATH
RUN go get -u -d github.com/google/syzkaller/...
# Dependency of go-fuzz
RUN go get golang.org/x/tools/go/packages
# go-fuzz-build is the tool that instruments Go files.
RUN go get github.com/dvyukov/go-fuzz/go-fuzz-build
# Dependency for one of the fuzz targets.
RUN go get github.com/ianlancetaylor/demangle
RUN git clone --depth 1 https://github.com/google/syzkaller.git syzkaller
WORKDIR syzkaller
COPY build.sh $SRC/

View File

@ -15,12 +15,6 @@
#
################################################################################
# Dependency of go-fuzz
go get golang.org/x/tools/go/packages
# go-fuzz-build is the tool that instruments Go files.
go get github.com/dvyukov/go-fuzz/go-fuzz-build
# Based on the function from oss-fuzz/projects/golang/build.sh script.
function compile_fuzzer {
path=$1
@ -37,9 +31,7 @@ function compile_fuzzer {
compile_fuzzer ./pkg/compiler Fuzz compiler_fuzzer
compile_fuzzer ./prog/test FuzzDeserialize prog_deserialize_fuzzer
compile_fuzzer ./prog/test FuzzParseLog prog_parselog_fuzzer
# This target fails to build.
# compile_fuzzer ./pkg/report Fuzz report_fuzzer
compile_fuzzer ./pkg/report Fuzz report_fuzzer
# This target is way too spammy and OOMs very quickly.
# compile_fuzzer ./tools/syz-trace2syz/proggen Fuzz trace2syz_fuzzer