aboutsummaryrefslogtreecommitdiff
path: root/projects/cppcheck
diff options
context:
space:
mode:
authorDaniel Marjamäki <daniel.marjamaki@gmail.com>2019-03-25 15:57:56 +0100
committerAbhishek Arya <inferno@chromium.org>2019-03-25 07:57:56 -0700
commitacd79090350c0d60f9a9b23d30201de5efe764bd (patch)
treef12ea4c6d9017d5b65859fd00e180b1680410334 /projects/cppcheck
parente9a43c10c69b15c9bbc079b9e20cdab425258744 (diff)
downloadoss-fuzz-acd79090350c0d60f9a9b23d30201de5efe764bd.tar.gz
Add project Cppcheck (#2257)
* Add project Cppcheck * Add email addresses
Diffstat (limited to 'projects/cppcheck')
-rw-r--r--projects/cppcheck/Dockerfile25
-rwxr-xr-xprojects/cppcheck/build.sh24
-rw-r--r--projects/cppcheck/project.yaml8
3 files changed, 57 insertions, 0 deletions
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