From ff66332a4afdadcb640874adafe481a91d4fd01a Mon Sep 17 00:00:00 2001 From: DavidKorczynski Date: Thu, 2 Dec 2021 11:13:07 +0000 Subject: [PATCH] gvisor: cifuzz fix (#6951) --- projects/gvisor/Dockerfile | 2 +- projects/gvisor/build.sh | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/projects/gvisor/Dockerfile b/projects/gvisor/Dockerfile index 598664ee2..e07967117 100644 --- a/projects/gvisor/Dockerfile +++ b/projects/gvisor/Dockerfile @@ -15,7 +15,7 @@ ################################################################################ FROM gcr.io/oss-fuzz-base/base-builder-go -RUN git clone --depth 1 --branch go https://github.com/google/gvisor +RUN git clone https://github.com/google/gvisor COPY build.sh state_fuzzer.go $SRC/ ENV GVISOR_ROOT $SRC/gvisor WORKDIR $GVISOR_ROOT diff --git a/projects/gvisor/build.sh b/projects/gvisor/build.sh index 7a1ee279a..fcbe5b110 100644 --- a/projects/gvisor/build.sh +++ b/projects/gvisor/build.sh @@ -15,5 +15,7 @@ # ################################################################################ +# Checkout branch here as opposed to the Dockerfile to make CIFuzz happy +git checkout go mv $SRC/state_fuzzer.go $GVISOR_ROOT/ compile_go_fuzzer gvisor.dev/gvisor FuzzStateLoad state_load_fuzz