Skip to content

Commit

Permalink
PDFMiner.Six Initial Integration (#12139)
Browse files Browse the repository at this point in the history
This pull requests integrates the Dockerfile needed to build the fuzzers
for pdfminer.six, as merged into upstream in this
[PR](pdfminer/pdfminer.six#949).
  • Loading branch information
capuanob authored Jul 1, 2024
1 parent a0a75a9 commit 92b7f83
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
24 changes: 24 additions & 0 deletions projects/pdfminersix/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# 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
RUN pip3 install --upgrade pip
RUN mkdir $SRC/corpus
RUN git clone --depth 1 https://github.com/pdfminer/pdfminer.six.git pdfminer.six \
&& cp pdfminer.six/fuzzing/build.sh $SRC/ \
&& cp pdfminer.six/samples/simple* $SRC/corpus
WORKDIR $SRC/pdfminer.six

4 changes: 4 additions & 0 deletions projects/pdfminersix/project.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,8 @@ language: python
primary_contact: "[email protected]"
auto_ccs:
- "[email protected]"
fuzzing_engines:
- libfuzzer
sanitizers:
- address
main_repo: "https://github.com/pdfminer/pdfminer.six"

0 comments on commit 92b7f83

Please sign in to comment.