Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions projects/pycups/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
#!/bin/bash -eu
# Copyright 2025 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 apt-get update && apt-get install -y \
libcups2-dev \
libcupsimage2-dev \
pkg-config \
&& rm -rf /var/lib/apt/lists/*

RUN git clone --depth 1 https://github.com/OpenPrinting/pycups.git $SRC/pycups
RUN git clone --depth 1 https://github.com/OpenPrinting/fuzzing.git $SRC/fuzzing

COPY build.sh $SRC/
WORKDIR $SRC/pycups
19 changes: 19 additions & 0 deletions projects/pycups/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/bin/bash -eu
# Copyright 2025 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.
#
################################################################################

chmod +x $SRC/fuzzing/projects/pycups/oss_fuzz_build.sh
$SRC/fuzzing/projects/pycups/oss_fuzz_build.sh
14 changes: 14 additions & 0 deletions projects/pycups/project.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
homepage: "https://github.com/OpenPrinting/pycups"
main_repo: "https://github.com/OpenPrinting/pycups"
primary_contact: "[email protected]"
auto_ccs:
- "[email protected]"
- "[email protected]"
- "[email protected]"

language: python
fuzzing_engines:
- libfuzzer
sanitizers:
- address
- undefined