Skip to content

Commit ad1d940

Browse files
Pdfplumber: Integration (#12949)
This pull request integrates the Dockerfile needed to build the fuzzers for pdfplumber. Note: The fuzzers were NOT merged upstream following discussion with the project maintainer [here](jsvine/pdfplumber#1245 (comment)) and with the precedence for out-of-repo fuzzers established [here](#12467) --------- Co-authored-by: bcapuano <bcapuano@asu.edu> Co-authored-by: Bailey Capuano <32396237+capuanob@users.noreply.github.com>
1 parent 7e8d53b commit ad1d940

1 file changed

Lines changed: 29 additions & 0 deletions

File tree

projects/pdfplumber/Dockerfile

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# Copyright 2025 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+
17+
FROM gcr.io/oss-fuzz-base/base-builder-python
18+
RUN pip3 install --upgrade pip
19+
RUN mkdir $SRC/corpus
20+
21+
# Upstream wants fuzzers hosted elsewhere, so pull them from fork (https://github.com/jsvine/pdfplumber/pull/1245#issuecomment-2581682100)
22+
RUN git clone --depth 1 https://github.com/ennamarie19/pdfplumber.git pdfplumber_fuzzer
23+
24+
RUN git clone --depth 1 https://github.com/jsvine/pdfplumber.git pdfplumber \
25+
&& rm -rf pdfplumber/fuzz # Remove the directory, if it exists
26+
RUN cp -r pdfplumber_fuzzer/fuzz pdfplumber \
27+
&& cp pdfplumber/fuzz/build.sh $SRC/
28+
WORKDIR $SRC/pdfplumber
29+

0 commit comments

Comments
 (0)