-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Pikepdf Initial Integration (#12454)
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
1 parent
7fa4a40
commit 690b4eb
Showing
1 changed file
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|