From f3fd7d1dcb7772b17026861d9a82a703eb53e8ad Mon Sep 17 00:00:00 2001 From: Max Dymond Date: Sun, 30 Jun 2019 22:05:31 +0100 Subject: [PATCH] [lz4] Add the lz4 project to oss-fuzz (#2550) * Add the lz4 project to oss-fuzz --- projects/lz4/Dockerfile | 23 +++++++++++++++++++++++ projects/lz4/build.sh | 19 +++++++++++++++++++ projects/lz4/project.yaml | 10 ++++++++++ 3 files changed, 52 insertions(+) create mode 100644 projects/lz4/Dockerfile create mode 100755 projects/lz4/build.sh create mode 100644 projects/lz4/project.yaml diff --git a/projects/lz4/Dockerfile b/projects/lz4/Dockerfile new file mode 100644 index 000000000..93da98d85 --- /dev/null +++ b/projects/lz4/Dockerfile @@ -0,0 +1,23 @@ +# 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 cmeister2@gmail.com + +RUN git clone --depth 1 https://github.com/lz4/lz4.git /src/lz4 + +WORKDIR $SRC/lz4 +COPY build.sh $SRC/ diff --git a/projects/lz4/build.sh b/projects/lz4/build.sh new file mode 100755 index 000000000..77d3f65da --- /dev/null +++ b/projects/lz4/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. +# +################################################################################ + +# Run the OSS-Fuzz script in the project. +./ossfuzz/ossfuzz.sh diff --git a/projects/lz4/project.yaml b/projects/lz4/project.yaml new file mode 100644 index 000000000..eb836d57e --- /dev/null +++ b/projects/lz4/project.yaml @@ -0,0 +1,10 @@ +homepage: "https://github.com/lz4/lz4" +primary_contact: "Yann.collet.73@gmail.com" +auto_ccs: + - "NickRTerrell@gmail.com" + - "cyan@fb.com" + - "terrelln@fb.com" +sanitizers: + - address + - memory + - undefined