aboutsummaryrefslogtreecommitdiffhomepage
path: root/projects/fwupd
diff options
context:
space:
mode:
authorGravatar Richard Hughes <rhughes@redhat.com>2021-02-08 15:02:48 +0000
committerGravatar GitHub <noreply@github.com>2021-02-08 07:02:48 -0800
commiteab9124b6ba5b169060663e47e96e672175ccd5f (patch)
treecb32c370d28dff998ef36f88c818f806aaf68ef5 /projects/fwupd
parent9282bca58b3360620e369eb1b5ab715daec6b07b (diff)
fwupd: Include fuzz targets (#5134)
INFO: performing bad build checks for /tmp/not-out/wac_fuzzer INFO: performing bad build checks for /tmp/not-out/synaptics-rmi_fuzzer INFO: performing bad build checks for /tmp/not-out/dfuse_fuzzer INFO: performing bad build checks for /tmp/not-out/bcm57xx_fuzzer INFO: performing bad build checks for /tmp/not-out/ihex_fuzzer INFO: performing bad build checks for /tmp/not-out/fmap_fuzzer INFO: performing bad build checks for /tmp/not-out/cros-ec_fuzzer INFO: performing bad build checks for /tmp/not-out/solokey_fuzzer INFO: performing bad build checks for /tmp/not-out/srec_fuzzer INFO: performing bad build checks for /tmp/not-out/ebitdo_fuzzer INFO: performing bad build checks for /tmp/not-out/synaprom_fuzzer Check build passed.
Diffstat (limited to 'projects/fwupd')
-rw-r--r--projects/fwupd/Dockerfile23
-rwxr-xr-xprojects/fwupd/build.sh18
-rw-r--r--projects/fwupd/project.yaml4
3 files changed, 45 insertions, 0 deletions
diff --git a/projects/fwupd/Dockerfile b/projects/fwupd/Dockerfile
new file mode 100644
index 00000000..d526837a
--- /dev/null
+++ b/projects/fwupd/Dockerfile
@@ -0,0 +1,23 @@
+# Copyright 2020 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
+RUN apt-get install -y pkg-config zlib1g-dev libffi-dev
+RUN pip3 install -U meson ninja
+RUN git clone --depth 1 https://github.com/fwupd/fwupd.git fwupd
+WORKDIR .
+COPY build.sh $SRC/
diff --git a/projects/fwupd/build.sh b/projects/fwupd/build.sh
new file mode 100755
index 00000000..8b721569
--- /dev/null
+++ b/projects/fwupd/build.sh
@@ -0,0 +1,18 @@
+#!/bin/bash -eu
+# Copyright 2020 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.
+#
+################################################################################
+
+python3 fwupd/contrib/ci/oss-fuzz.py
diff --git a/projects/fwupd/project.yaml b/projects/fwupd/project.yaml
index 4810db47..28641396 100644
--- a/projects/fwupd/project.yaml
+++ b/projects/fwupd/project.yaml
@@ -2,3 +2,7 @@ homepage: "https://github.com/fwupd/fwupd"
language: c
primary_contact: "hughsient@gmail.com"
main_repo: 'https://github.com/fwupd/fwupd'
+fuzzing_engines:
+ - libfuzzer
+sanitizers:
+ - address