aboutsummaryrefslogtreecommitdiffhomepage
path: root/projects/fio
diff options
context:
space:
mode:
authorGravatar Catena cyber <35799796+catenacyber@users.noreply.github.com>2021-01-13 20:35:44 +0100
committerGravatar GitHub <noreply@github.com>2021-01-13 11:35:44 -0800
commite8832cecaa17b99809a9ca840f60387930b1ed4d (patch)
tree5e28b4773a7f235c53c5191fa0755356554bc67e /projects/fio
parent8bc06174beb28e91508e925f98bcee7722b8b9bf (diff)
Adds project fio (#4916)
* Adds project fio * fix nits from review * Fix CI for afl and remove MSAN * Use upstream repo * Fix comments from code review
Diffstat (limited to 'projects/fio')
-rw-r--r--projects/fio/Dockerfile21
-rwxr-xr-xprojects/fio/build.sh25
-rw-r--r--projects/fio/project.yaml9
3 files changed, 55 insertions, 0 deletions
diff --git a/projects/fio/Dockerfile b/projects/fio/Dockerfile
new file mode 100644
index 00000000..91c8dbf1
--- /dev/null
+++ b/projects/fio/Dockerfile
@@ -0,0 +1,21 @@
+# Copyright 2021 Google LLC
+#
+# 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
+RUN apt-get update && apt-get install -y make
+RUN git clone --depth 1 https://github.com/axboe/fio.git fio
+WORKDIR $SRC/fio
+COPY build.sh $SRC/
diff --git a/projects/fio/build.sh b/projects/fio/build.sh
new file mode 100755
index 00000000..0495cf4f
--- /dev/null
+++ b/projects/fio/build.sh
@@ -0,0 +1,25 @@
+#!/bin/bash -eu
+# Copyright 2021 Google LLC
+#
+# 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 project
+export LDFLAGS="$CXXFLAGS"
+./configure
+make -j$(nproc)
+cp t/fuzz/fuzz_parseini $OUT/
+
+# builds corpus
+zip -r $OUT/fuzz_parseini_seed_corpus.zip examples
diff --git a/projects/fio/project.yaml b/projects/fio/project.yaml
new file mode 100644
index 00000000..e403b1d1
--- /dev/null
+++ b/projects/fio/project.yaml
@@ -0,0 +1,9 @@
+homepage: "http://git.kernel.dk/fio.git"
+language: c++
+primary_contact: "axboe@kernel.dk"
+auto_ccs:
+ - "p.antoine@catenacyber.fr"
+sanitizers:
+ - address
+ - undefined
+main_repo: 'https://github.com/axboe/fio.git'