From 57dda0de3896e57f6d3f0625b2d5e13bbdb48d79 Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Tue, 29 Dec 2020 17:26:43 +0900 Subject: [PATCH] fuzzers: set maximum length for several fuzzers Hopefully fixes oss-fuzz#19081, oss-fuzz#21731, oss-fuzz#21755. https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=19081 https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=21731 https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=21755 --- src/fuzz/fuzz-nspawn-oci.options | 2 ++ src/fuzz/fuzz-nspawn-settings.options | 2 ++ src/fuzz/fuzz-udev-rules.options | 2 ++ src/fuzz/fuzz-unit-file.options | 2 ++ 4 files changed, 8 insertions(+) create mode 100644 src/fuzz/fuzz-nspawn-oci.options create mode 100644 src/fuzz/fuzz-nspawn-settings.options create mode 100644 src/fuzz/fuzz-udev-rules.options create mode 100644 src/fuzz/fuzz-unit-file.options diff --git a/src/fuzz/fuzz-nspawn-oci.options b/src/fuzz/fuzz-nspawn-oci.options new file mode 100644 index 0000000000..678d526b1e --- /dev/null +++ b/src/fuzz/fuzz-nspawn-oci.options @@ -0,0 +1,2 @@ +[libfuzzer] +max_len = 65536 diff --git a/src/fuzz/fuzz-nspawn-settings.options b/src/fuzz/fuzz-nspawn-settings.options new file mode 100644 index 0000000000..678d526b1e --- /dev/null +++ b/src/fuzz/fuzz-nspawn-settings.options @@ -0,0 +1,2 @@ +[libfuzzer] +max_len = 65536 diff --git a/src/fuzz/fuzz-udev-rules.options b/src/fuzz/fuzz-udev-rules.options new file mode 100644 index 0000000000..678d526b1e --- /dev/null +++ b/src/fuzz/fuzz-udev-rules.options @@ -0,0 +1,2 @@ +[libfuzzer] +max_len = 65536 diff --git a/src/fuzz/fuzz-unit-file.options b/src/fuzz/fuzz-unit-file.options new file mode 100644 index 0000000000..678d526b1e --- /dev/null +++ b/src/fuzz/fuzz-unit-file.options @@ -0,0 +1,2 @@ +[libfuzzer] +max_len = 65536