diff options
Diffstat (limited to 'projects')
-rw-r--r-- | projects/fio/Dockerfile | 21 | ||||
-rwxr-xr-x | projects/fio/build.sh | 25 | ||||
-rw-r--r-- | projects/fio/project.yaml | 9 |
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' |