From acd79090350c0d60f9a9b23d30201de5efe764bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Mon, 25 Mar 2019 15:57:56 +0100 Subject: [PATCH] Add project Cppcheck (#2257) * Add project Cppcheck * Add email addresses --- projects/cppcheck/Dockerfile | 25 +++++++++++++++++++++++++ projects/cppcheck/build.sh | 24 ++++++++++++++++++++++++ projects/cppcheck/project.yaml | 8 ++++++++ 3 files changed, 57 insertions(+) create mode 100644 projects/cppcheck/Dockerfile create mode 100755 projects/cppcheck/build.sh create mode 100644 projects/cppcheck/project.yaml diff --git a/projects/cppcheck/Dockerfile b/projects/cppcheck/Dockerfile new file mode 100644 index 000000000..cf7fc2874 --- /dev/null +++ b/projects/cppcheck/Dockerfile @@ -0,0 +1,25 @@ +# Copyright 2019 Google Inc. +# +# 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 +MAINTAINER daniel.marjamaki@gmail.com + +RUN git clone https://github.com/orbitcowboy/afl_cppcheck.git afl_cppcheck +RUN git clone https://github.com/danmar/cppcheck.git afl_cppcheck/cppcheck + +WORKDIR afl_cppcheck +COPY build.sh $SRC/ + diff --git a/projects/cppcheck/build.sh b/projects/cppcheck/build.sh new file mode 100755 index 000000000..526e5c3d4 --- /dev/null +++ b/projects/cppcheck/build.sh @@ -0,0 +1,24 @@ +#!/bin/bash -eu +# Copyright 2019 Google Inc. +# +# 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 fuzzer + +cd fuzzer-cli +make oss-fuzz-client +cp oss-fuzz-client $OUT/ + + diff --git a/projects/cppcheck/project.yaml b/projects/cppcheck/project.yaml new file mode 100644 index 000000000..09fc7aa46 --- /dev/null +++ b/projects/cppcheck/project.yaml @@ -0,0 +1,8 @@ +homepage: "https://cppcheck.sourceforge.net" +primary_contact: "daniel.marjamaki@gmail.com" +auto_ccs: + - "daniel.marjamaki@gmail.com" + - "ettl.martin78@gmail.com" +sanitizers: + - address + - undefined