From da92a7d062736e3fab64f0ada9bae4955552b0ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=20Blanchon?= Date: Tue, 10 Jan 2017 20:06:20 +0100 Subject: [PATCH] add project ArduinoJson (#257) --- projects/arduinojson/Dockerfile | 22 ++++++++++++++++++++++ projects/arduinojson/build.sh | 20 ++++++++++++++++++++ projects/arduinojson/project.yaml | 6 ++++++ 3 files changed, 48 insertions(+) create mode 100644 projects/arduinojson/Dockerfile create mode 100644 projects/arduinojson/build.sh create mode 100644 projects/arduinojson/project.yaml diff --git a/projects/arduinojson/Dockerfile b/projects/arduinojson/Dockerfile new file mode 100644 index 000000000..6929136d6 --- /dev/null +++ b/projects/arduinojson/Dockerfile @@ -0,0 +1,22 @@ +# Copyright 2016 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 ossfuzz/base-builder +MAINTAINER oss-fuzz@benoitblanchon.fr +RUN apt-get install -y make zip git +RUN git clone --depth 1 https://github.com/bblanchon/ArduinoJson.git +WORKDIR ArduinoJson +COPY build.sh $SRC/ diff --git a/projects/arduinojson/build.sh b/projects/arduinojson/build.sh new file mode 100644 index 000000000..db82ac49e --- /dev/null +++ b/projects/arduinojson/build.sh @@ -0,0 +1,20 @@ +#!/bin/bash -eu +# Copyright 2016 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 fuzzers +cd fuzzing +make diff --git a/projects/arduinojson/project.yaml b/projects/arduinojson/project.yaml new file mode 100644 index 000000000..98eb634cf --- /dev/null +++ b/projects/arduinojson/project.yaml @@ -0,0 +1,6 @@ +homepage: "https://github.com/bblanchon/ArduinoJson" +primary_contact: "oss-fuzz@benoitblanchon.fr" +sanitizers: + - address + - undefined + - memory