Update mtail fuzzing to use compile_go_fuzzer. (#4744)

This commit is contained in:
Jamie Wilkinson 2020-11-30 13:14:32 +11:00 committed by GitHub
parent 11996eb640
commit 061586aea9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 12 deletions

View File

@ -15,7 +15,6 @@
################################################################################
FROM gcr.io/oss-fuzz-base/base-builder
RUN mkdir -p github.com/google
RUN git clone --depth 1 https://github.com/google/mtail github.com/google/mtail
WORKDIR github.com/google/mtail
RUN git clone --depth 1 https://github.com/google/mtail $GOPATH/src/github.com/google/mtail
WORKDIR $GOPATH/src/github.com/google/mtail
COPY build.sh $SRC/

View File

@ -15,12 +15,6 @@
#
################################################################################
# We've used git checkout, not go get to fetch the source so set up the GOPATH to find our source.
export GOPATH=$GOPATH:/
# go-fuzz-build doesn't like modules until https://github.com/dvyukov/go-fuzz/issues/195 is fixed
# fetch and vendor all the dependencies so go-fuzz-build can find them
make GO111MODULE=off --debug install_deps
go mod vendor
make GO111MODULE=off --debug $OUT/vm-fuzzer.dict $OUT/vm-fuzzer_seed_corpus.zip $OUT/vm-fuzzer
compile_go_fuzzer github.com/google/mtail/internal/vm Fuzz vm-fuzzer
# Make the dictionary and seed corpus.
make --debug $OUT/vm-fuzzer.dict $OUT/vm-fuzzer_seed_corpus.zip