From f07c24af6622f621e20cdbc517d2c3216bf20a24 Mon Sep 17 00:00:00 2001 From: Jonathan Metzman Date: Tue, 23 Dec 2025 12:18:32 -0500 Subject: [PATCH 1/2] Comment on the luarocks installs in the dockerfiles that it is needed for running lua projects in oss-fuzz --- docker/oss-fuzz/base/Dockerfile | 1 + docker/oss-fuzz/base/ubuntu-20-04.Dockerfile | 1 + docker/oss-fuzz/base/ubuntu-24-04.Dockerfile | 1 + 3 files changed, 3 insertions(+) diff --git a/docker/oss-fuzz/base/Dockerfile b/docker/oss-fuzz/base/Dockerfile index c55f6f5abc..1e5f37fab7 100644 --- a/docker/oss-fuzz/base/Dockerfile +++ b/docker/oss-fuzz/base/Dockerfile @@ -13,6 +13,7 @@ # limitations under the License. FROM gcr.io/clusterfuzz-images/base +# luarocks is needed for running lua projects in oss-fuzz. RUN apt-get update && apt-get install -y luarocks ENV UPDATE_WEB_TESTS False diff --git a/docker/oss-fuzz/base/ubuntu-20-04.Dockerfile b/docker/oss-fuzz/base/ubuntu-20-04.Dockerfile index 4b9062a582..8a6ceb210a 100644 --- a/docker/oss-fuzz/base/ubuntu-20-04.Dockerfile +++ b/docker/oss-fuzz/base/ubuntu-20-04.Dockerfile @@ -13,6 +13,7 @@ # limitations under the License. FROM gcr.io/clusterfuzz-images/base:ubuntu-20-04 +# luarocks is needed for running lua projects in oss-fuzz. RUN apt-get update && apt-get install -y luarocks ENV UPDATE_WEB_TESTS False diff --git a/docker/oss-fuzz/base/ubuntu-24-04.Dockerfile b/docker/oss-fuzz/base/ubuntu-24-04.Dockerfile index 0a4fbd285c..9674d49c8a 100644 --- a/docker/oss-fuzz/base/ubuntu-24-04.Dockerfile +++ b/docker/oss-fuzz/base/ubuntu-24-04.Dockerfile @@ -13,6 +13,7 @@ # limitations under the License. FROM gcr.io/clusterfuzz-images/base:ubuntu-24-04 +# luarocks is needed for running lua projects in oss-fuzz. RUN apt-get update && apt-get install -y luarocks ENV UPDATE_WEB_TESTS False From bdb9351e3307d5e75476ca294f4f02d5c6f24fd3 Mon Sep 17 00:00:00 2001 From: Jonathan Metzman Date: Fri, 2 Jan 2026 14:24:00 -0500 Subject: [PATCH 2/2] Support shell script fuzz targets. Added .sh to ALLOWED_FUZZ_TARGET_EXTENSIONS in src/clusterfuzz/_internal/bot/fuzzers/utils.py. --- src/clusterfuzz/_internal/bot/fuzzers/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/clusterfuzz/_internal/bot/fuzzers/utils.py b/src/clusterfuzz/_internal/bot/fuzzers/utils.py index ffe8d4eac1..31b12c30b4 100644 --- a/src/clusterfuzz/_internal/bot/fuzzers/utils.py +++ b/src/clusterfuzz/_internal/bot/fuzzers/utils.py @@ -26,7 +26,7 @@ from clusterfuzz._internal.system import environment from clusterfuzz._internal.system import shell -ALLOWED_FUZZ_TARGET_EXTENSIONS = ['', '.exe', '.par'] +ALLOWED_FUZZ_TARGET_EXTENSIONS = ['', '.exe', '.par', '.sh'] FUZZ_TARGET_SEARCH_BYTES = [b'LLVMFuzzerTestOneInput', b'LLVMFuzzerRunDriver'] VALID_TARGET_NAME_REGEX = re.compile(r'^[a-zA-Z0-9@_.-]+$') BLOCKLISTED_TARGET_NAME_REGEX = re.compile(r'^(jazzer_driver.*)$')