From 2f4da4e8da7fff37ae3140397d61c38fc17b6b10 Mon Sep 17 00:00:00 2001 From: Tyson Smith Date: Wed, 5 Aug 2020 15:45:14 -0700 Subject: [PATCH] [vorbis] Use shallow clone (#4259) * [vorbis] Use shallow clone * [tremor] Use shallow clone --- projects/tremor/Dockerfile | 4 ++-- projects/vorbis/Dockerfile | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/projects/tremor/Dockerfile b/projects/tremor/Dockerfile index 21cda081c..d190c225a 100644 --- a/projects/tremor/Dockerfile +++ b/projects/tremor/Dockerfile @@ -16,8 +16,8 @@ FROM gcr.io/oss-fuzz-base/base-builder RUN apt-get update && apt-get install -y make autoconf automake libogg-dev libtool pkg-config wget -RUN git clone https://gitlab.xiph.org/xiph/ogg.git -RUN git clone https://gitlab.xiph.org/xiph/tremor.git +RUN git clone --depth 1 https://gitlab.xiph.org/xiph/ogg.git +RUN git clone --depth 1 https://gitlab.xiph.org/xiph/tremor.git RUN svn export https://github.com/mozillasecurity/fuzzdata.git/trunk/samples/vorbis decode_corpus WORKDIR tremor COPY decode_fuzzer.cc $SRC/tremor/ diff --git a/projects/vorbis/Dockerfile b/projects/vorbis/Dockerfile index ae9ed5d86..80523ce77 100644 --- a/projects/vorbis/Dockerfile +++ b/projects/vorbis/Dockerfile @@ -16,8 +16,8 @@ FROM gcr.io/oss-fuzz-base/base-builder RUN apt-get update && apt-get install -y make autoconf automake libtool pkg-config wget -RUN git clone https://gitlab.xiph.org/xiph/ogg.git -RUN git clone https://gitlab.xiph.org/xiph/vorbis.git +RUN git clone --depth 1 https://gitlab.xiph.org/xiph/ogg.git +RUN git clone --depth 1 https://gitlab.xiph.org/xiph/vorbis.git RUN svn export https://github.com/mozillasecurity/fuzzdata.git/trunk/samples/ogg decode_corpus RUN svn export --force https://github.com/mozillasecurity/fuzzdata.git/trunk/samples/vorbis decode_corpus # TODO: remove `people.xiph.org` lines once upstream build script is updated