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