aboutsummaryrefslogtreecommitdiffhomepage
path: root/projects
diff options
context:
space:
mode:
authorGravatar Guido Vranken <guidovranken@users.noreply.github.com>2019-06-18 21:47:04 +0200
committerGravatar Max Moroz <mmoroz@chromium.org>2019-06-18 12:47:04 -0700
commit32bfcebcd20858edd6106343c9532bf597dcf4b1 (patch)
treeab961e12f765525fc589ab7e2494d3d8b7473cbc /projects
parent1a629a2c9b34ca2e7b97b72ad4928475c6431e1c (diff)
[piex] Add piex fuzzer (#2345)
* [piex] Add piex fuzzer * [piex] Add fuzzer-piex
Diffstat (limited to 'projects')
-rw-r--r--projects/piex/Dockerfile22
-rwxr-xr-xprojects/piex/build.sh26
-rw-r--r--projects/piex/project.yaml6
3 files changed, 54 insertions, 0 deletions
diff --git a/projects/piex/Dockerfile b/projects/piex/Dockerfile
new file mode 100644
index 00000000..9adb45dc
--- /dev/null
+++ b/projects/piex/Dockerfile
@@ -0,0 +1,22 @@
+# 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 guidovranken@gmail.com
+RUN apt-get update && apt-get install -y make autoconf automake libtool
+RUN git clone https://github.com/guidovranken/piex.git piex
+WORKDIR piex
+COPY build.sh $SRC/
diff --git a/projects/piex/build.sh b/projects/piex/build.sh
new file mode 100755
index 00000000..a0cc3761
--- /dev/null
+++ b/projects/piex/build.sh
@@ -0,0 +1,26 @@
+#!/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.
+#
+################################################################################
+
+git checkout fuzzers
+cd fuzzers
+make
+
+cp fuzzer-tiff_parser $OUT/
+cp fuzzer-tiff_parser_seed_corpus.zip $OUT/
+
+cp fuzzer-piex $OUT/
+cp fuzzer-piex_seed_corpus.zip $OUT/
diff --git a/projects/piex/project.yaml b/projects/piex/project.yaml
new file mode 100644
index 00000000..9afd689f
--- /dev/null
+++ b/projects/piex/project.yaml
@@ -0,0 +1,6 @@
+homepage: "https://github.com/google/piex"
+primary_contact: "guidovranken@gmail.com"
+sanitizers:
+ - address
+ - undefined
+ - memory