Skip to content

Commit

Permalink
Pikepdf Initial Integration (#12454)
Browse files Browse the repository at this point in the history
This pull requests integrates the Dockerfile needed to build the fuzzers
for pikepdf, as merged into upstream here -
pikepdf/pikepdf#607

---------

Co-authored-by: bcapuano <[email protected]>
  • Loading branch information
ennamarie19 and capuanob authored Sep 27, 2024
1 parent 7fa4a40 commit 690b4eb
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions projects/pikepdf/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# Copyright 2023 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
################################################################################

FROM gcr.io/oss-fuzz-base/base-builder-python

ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get install -y --no-install-recommends\
cmake \
make \
pkg-config \
clang \
libjpeg-dev \
zlib1g-dev \
&& rm -rf /var/lib/apt/lists/*
RUN apt-get purge -y gcc && apt-get autoremove -y && apt-get clean

RUN pip3 install --upgrade pip
RUN git clone --depth 1 https://github.com/pikepdf/pikepdf.git pikepdf \
&& cp pikepdf/fuzzing/build.sh $SRC/
RUN git clone --depth 1 https://github.com/qpdf/qpdf.git qpdf

WORKDIR pikepdf

0 comments on commit 690b4eb

Please sign in to comment.