aboutsummaryrefslogtreecommitdiffhomepage
path: root/projects
diff options
context:
space:
mode:
authorGravatar Alex Gaynor <alex.gaynor@gmail.com>2019-06-27 10:35:54 -0400
committerGravatar Abhishek Arya <inferno@chromium.org>2019-06-27 07:35:54 -0700
commit35f59f48f752172c29ee8a02d1fa5af3cb769158 (patch)
tree135032446d74e0886f1920a3cb6817133099f733 /projects
parent3c93f4ffc0171ce4cc166637765dc1d68db114c5 (diff)
Integrate libcbor fuzzer (#2543)
Diffstat (limited to 'projects')
-rw-r--r--projects/libcbor/Dockerfile22
-rwxr-xr-xprojects/libcbor/build.sh19
2 files changed, 41 insertions, 0 deletions
diff --git a/projects/libcbor/Dockerfile b/projects/libcbor/Dockerfile
new file mode 100644
index 00000000..155d336a
--- /dev/null
+++ b/projects/libcbor/Dockerfile
@@ -0,0 +1,22 @@
+# 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 alex.gaynor@gmail.com
+RUN apt-get update && apt-get install -y make cmake
+RUN git clone --depth 1 https://github.com/PJK/libcbor
+WORKDIR libcbor
+COPY build.sh $SRC/
diff --git a/projects/libcbor/build.sh b/projects/libcbor/build.sh
new file mode 100755
index 00000000..dc25f121
--- /dev/null
+++ b/projects/libcbor/build.sh
@@ -0,0 +1,19 @@
+#!/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.
+#
+################################################################################
+
+./oss-fuzz/build.sh
+