aboutsummaryrefslogtreecommitdiffhomepage
path: root/projects
diff options
context:
space:
mode:
authorGravatar Max Dymond <cmeister2@gmail.com>2019-06-30 22:05:31 +0100
committerGravatar jonathanmetzman <31354670+jonathanmetzman@users.noreply.github.com>2019-06-30 14:05:31 -0700
commitf3fd7d1dcb7772b17026861d9a82a703eb53e8ad (patch)
treea5919fecd83c14580ed69f8bfd34f48704c722d9 /projects
parentc158db4df239a68ca9f685a550f2264f3fb9e123 (diff)
[lz4] Add the lz4 project to oss-fuzz (#2550)
* Add the lz4 project to oss-fuzz
Diffstat (limited to 'projects')
-rw-r--r--projects/lz4/Dockerfile23
-rwxr-xr-xprojects/lz4/build.sh19
-rw-r--r--projects/lz4/project.yaml10
3 files changed, 52 insertions, 0 deletions
diff --git a/projects/lz4/Dockerfile b/projects/lz4/Dockerfile
new file mode 100644
index 00000000..93da98d8
--- /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 00000000..77d3f65d
--- /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 00000000..eb836d57
--- /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