• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright 2018 Google Inc.
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7#      http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14#
15################################################################################
16
17FROM gcr.io/oss-fuzz-base/base-builder
18RUN apt-get update && apt-get install -y wget autoconf automake libtool pkg-config gperf
19RUN pip3 install meson ninja
20
21RUN git clone --depth 1 https://github.com/madler/zlib.git
22RUN git clone --depth 1 git://git.sv.nongnu.org/freetype/freetype2.git
23RUN git clone --depth 1 https://github.com/mm2/Little-CMS.git
24RUN git clone --depth 1 https://github.com/uclouvain/openjpeg
25RUN git clone --depth 1 https://github.com/glennrp/libpng.git
26RUN git clone --depth 1 https://gitlab.freedesktop.org/fontconfig/fontconfig.git
27RUN git clone --depth 1 https://gitlab.freedesktop.org/cairo/cairo.git
28RUN git clone --depth 1 --branch=5.15 git://code.qt.io/qt/qtbase.git
29ADD http://ftp.gnome.org/pub/gnome/sources/pango/1.48/pango-1.48.0.tar.xz $SRC
30RUN tar xvJf $SRC/pango-1.48.0.tar.xz
31ADD https://ftp.gnome.org/pub/gnome/sources/glib/2.64/glib-2.64.2.tar.xz $SRC
32RUN tar xvJf $SRC/glib-2.64.2.tar.xz
33RUN git clone --depth 1 --single-branch https://gitlab.freedesktop.org/poppler/poppler.git
34
35RUN git clone --depth 1 https://github.com/mozilla/pdf.js pdf.js && \
36    zip -q $SRC/poppler_seed_corpus.zip pdf.js/test/pdfs/*.pdf && \
37    rm -rf pdf.js
38ADD https://raw.githubusercontent.com/google/fuzzing/master/dictionaries/pdf.dict $SRC/poppler.dict
39WORKDIR $SRC/poppler
40COPY build.sh $SRC/
41