diff --git a/docker/oss-fuzz/base/Dockerfile b/docker/oss-fuzz/base/Dockerfile index c55f6f5abca..1e5f37fab76 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 4b9062a5822..8a6ceb210a4 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 0a4fbd285c2..9674d49c8ab 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 diff --git a/src/clusterfuzz/_internal/bot/fuzzers/utils.py b/src/clusterfuzz/_internal/bot/fuzzers/utils.py index ffe8d4eac12..31b12c30b4d 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.*)$')