From e244631b1679b9b6a5f535cd4e0023aa450b287d Mon Sep 17 00:00:00 2001 From: Catena cyber <35799796+catenacyber@users.noreply.github.com> Date: Wed, 31 Mar 2021 16:52:51 +0200 Subject: [capnproto] Initial integration (#5202) --- projects/capnproto/Dockerfile | 21 +++++++++++++++++++++ projects/capnproto/build.sh | 23 +++++++++++++++++++++++ projects/capnproto/project.yaml | 8 ++++++++ 3 files changed, 52 insertions(+) create mode 100644 projects/capnproto/Dockerfile create mode 100755 projects/capnproto/build.sh create mode 100644 projects/capnproto/project.yaml diff --git a/projects/capnproto/Dockerfile b/projects/capnproto/Dockerfile new file mode 100644 index 000000000..dffaa4580 --- /dev/null +++ b/projects/capnproto/Dockerfile @@ -0,0 +1,21 @@ +# Copyright 2021 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 +RUN apt-get update && apt-get install -y cmake zlib1g-dev +RUN git clone --depth 1 https://github.com/capnproto/capnproto +WORKDIR $SRC/capnproto +COPY build.sh $SRC/ diff --git a/projects/capnproto/build.sh b/projects/capnproto/build.sh new file mode 100755 index 000000000..176418d05 --- /dev/null +++ b/projects/capnproto/build.sh @@ -0,0 +1,23 @@ +#!/bin/bash -eu +# Copyright 2021 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. +# +################################################################################ + +# build project +mkdir build +cd build +cmake -DBUILD_SHARED_LIBS=OFF .. +make -j$(nproc) +cp c++/src/capnp/*fuzzer* $OUT/ diff --git a/projects/capnproto/project.yaml b/projects/capnproto/project.yaml new file mode 100644 index 000000000..e8cffba08 --- /dev/null +++ b/projects/capnproto/project.yaml @@ -0,0 +1,8 @@ +homepage: "https://capnproto.org" +language: c++ +primary_contact: "security@sandstorm.io" +auto_ccs: + - "p.antoine@catenacyber.fr" +sanitizers: + - address +main_repo: 'https://github.com/capnproto/capnproto' -- cgit v1.2.3