diff options
author | Catena cyber <35799796+catenacyber@users.noreply.github.com> | 2021-03-31 16:52:51 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-31 14:52:51 +0000 |
commit | e244631b1679b9b6a5f535cd4e0023aa450b287d (patch) | |
tree | 314b12a4dbd901a4374799d75c5bd4b788f8f652 | |
parent | 73ebaeee90a505e1d792bcbf0a3f31e5b5f2f4c6 (diff) | |
download | oss-fuzz-e244631b1679b9b6a5f535cd4e0023aa450b287d.tar.gz |
[capnproto] Initial integration (#5202)
-rw-r--r-- | projects/capnproto/Dockerfile | 21 | ||||
-rwxr-xr-x | projects/capnproto/build.sh | 23 | ||||
-rw-r--r-- | projects/capnproto/project.yaml | 8 |
3 files changed, 52 insertions, 0 deletions
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' |