From c9f5d87321d6b052d73f22a64ac2de8b383d0bff Mon Sep 17 00:00:00 2001 From: DavidKorczynski Date: Thu, 29 Feb 2024 03:32:52 +0000 Subject: [PATCH] ClusterFuzzLite: fix fuzzer (#11649) Unblocks the fuzzer causing CI issues e.g. https://github.com/google/oss-fuzz/pull/11644 Fixes: https://github.com/google/oss-fuzz/issues/11648 Signed-off-by: David Korczynski --- .clusterfuzzlite/coverage_atheris_fuzzer.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.clusterfuzzlite/coverage_atheris_fuzzer.py b/.clusterfuzzlite/coverage_atheris_fuzzer.py index d7c916037..4453fcd48 100644 --- a/.clusterfuzzlite/coverage_atheris_fuzzer.py +++ b/.clusterfuzzlite/coverage_atheris_fuzzer.py @@ -28,7 +28,10 @@ with atheris.instrument_imports(): REPO_PATH = '/src/curl' PROJECT_NAME = 'curl' -oss_fuzz_coverage = get_coverage.OSSFuzzCoverage(REPO_PATH, PROJECT_NAME) + +with mock.patch('get_coverage._get_oss_fuzz_fuzzer_stats_dir_url', + return_value="randomurl"): + oss_fuzz_coverage = get_coverage.OSSFuzzCoverage(REPO_PATH, PROJECT_NAME) def TestOneInput(data):