From 099669c0c51c3ac1ba4e96be9ede87d8135da029 Mon Sep 17 00:00:00 2001 From: Philippe Antoine Date: Thu, 26 Jun 2025 09:06:47 +0200 Subject: [PATCH] quiche-cloudfare: initial integration --- projects/quiche-cloudflare/Dockerfile | 22 ++++++++++++++++++++++ projects/quiche-cloudflare/build.sh | 24 ++++++++++++++++++++++++ projects/quiche-cloudflare/project.yaml | 10 ++++++++++ 3 files changed, 56 insertions(+) create mode 100644 projects/quiche-cloudflare/Dockerfile create mode 100644 projects/quiche-cloudflare/build.sh create mode 100644 projects/quiche-cloudflare/project.yaml diff --git a/projects/quiche-cloudflare/Dockerfile b/projects/quiche-cloudflare/Dockerfile new file mode 100644 index 000000000000..823c5cc0dbf9 --- /dev/null +++ b/projects/quiche-cloudflare/Dockerfile @@ -0,0 +1,22 @@ +# 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-rust + +RUN git clone --recursive --depth 1 https://github.com/cloudflare/quiche quiche +COPY build.sh $SRC/ +ENV RUSTUP_TOOLCHAIN nightly-2025-01-10 +RUN rustup update +WORKDIR $SRC/quiche diff --git a/projects/quiche-cloudflare/build.sh b/projects/quiche-cloudflare/build.sh new file mode 100644 index 000000000000..d442851e55c9 --- /dev/null +++ b/projects/quiche-cloudflare/build.sh @@ -0,0 +1,24 @@ +#!/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. +# +################################################################################ + +cargo fuzz build +cargo fuzz list | while read i; do + cp fuzz/target/x86_64-unknown-linux-gnu/release/$i $OUT/ + zip -rj $OUT/${i}_seed_corpus.zip fuzz/corpus/${i}/ +done + +mkdir $OUT/fuzz +cp fuzz/cert* $OUT/fuzz diff --git a/projects/quiche-cloudflare/project.yaml b/projects/quiche-cloudflare/project.yaml new file mode 100644 index 000000000000..2cf1ea3852f9 --- /dev/null +++ b/projects/quiche-cloudflare/project.yaml @@ -0,0 +1,10 @@ +homepage: "https://docs.quic.tech/quiche/" +primary_contact: "alessandro@cloudflare.com" +main_repo: "https://github.com/cloudflare/quiche" +sanitizers: + - address +fuzzing_engines: + - libfuzzer +language: rust +auto_ccs: + - "lucas@cloudflare.com"