• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright 2021 Google LLC
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 && \
19    apt-get install -y --no-install-recommends \
20        make autoconf automake libtool pkg-config \
21        zlib1g-dev zlib1g-dev:i386 liblzma-dev liblzma-dev:i386 \
22        wget intltool  sasl2-bin python3-pip
23RUN pip3 install -U meson ninja
24
25RUN git clone --depth 1 https://gitlab.gnome.org/GNOME/glib
26RUN git clone --depth 1 https://gitlab.gnome.org/GNOME/libxml2.git
27RUN wget https://sourceforge.net/projects/pidgin/files/Pidgin/2.14.5/pidgin-2.14.5.tar.bz2
28RUN wget ftp://sourceware.org/pub/libffi/libffi-3.2.1.tar.gz
29
30RUN git clone --depth 1 https://github.com/dvyukov/go-fuzz-corpus
31RUN git clone --depth 1 https://github.com/google/fuzzing
32
33WORKDIR $SRC
34
35COPY build.sh \
36     pidgin_xml_fuzzer.c \
37     pidgin_utils_fuzzer.c \
38     $SRC/
39