aboutsummaryrefslogtreecommitdiff
path: root/projects/cjson
diff options
context:
space:
mode:
authorRandy <randy408@protonmail.com>2019-10-24 18:48:45 +0200
committerjonathanmetzman <31354670+jonathanmetzman@users.noreply.github.com>2019-10-24 09:48:45 -0700
commitc6c2802432eb0247b16ecf5b3fbd89893205cc8c (patch)
tree58477c9cd3fdfcddd8efa23f766a092b4ec83acd /projects/cjson
parente74b4642b90d0306bd3bc4adb95ac7d5b7591d27 (diff)
downloadoss-fuzz-c6c2802432eb0247b16ecf5b3fbd89893205cc8c.tar.gz
[cJSON] Integrate project (#2589)
Diffstat (limited to 'projects/cjson')
-rw-r--r--projects/cjson/Dockerfile27
-rw-r--r--projects/cjson/build.sh18
-rw-r--r--projects/cjson/project.yaml4
3 files changed, 49 insertions, 0 deletions
diff --git a/projects/cjson/Dockerfile b/projects/cjson/Dockerfile
new file mode 100644
index 000000000..925dd6699
--- /dev/null
+++ b/projects/cjson/Dockerfile
@@ -0,0 +1,27 @@
+#!/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.
+#
+################################################################################
+
+FROM gcr.io/oss-fuzz-base/base-builder
+
+MAINTAINER randy408@protonmail.com
+
+RUN apt-get update && apt-get install -y cmake
+
+RUN git clone --depth 1 https://github.com/DaveGamble/cJSON.git cjson
+
+WORKDIR cjson
+COPY build.sh $SRC/
diff --git a/projects/cjson/build.sh b/projects/cjson/build.sh
new file mode 100644
index 000000000..7d6cea020
--- /dev/null
+++ b/projects/cjson/build.sh
@@ -0,0 +1,18 @@
+#!/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.
+#
+################################################################################
+# Run the OSS-Fuzz script in the project
+$SRC/cjson/fuzzing/ossfuzz.sh \ No newline at end of file
diff --git a/projects/cjson/project.yaml b/projects/cjson/project.yaml
new file mode 100644
index 000000000..269d5a1bd
--- /dev/null
+++ b/projects/cjson/project.yaml
@@ -0,0 +1,4 @@
+homepage: "https://github.com/DaveGamble/cJSON"
+primary_contact: "max@maxbruckner.de"
+auto_ccs:
+ - "randy440088@gmail.com"