Fix broken blackbox fuzzer projects. (#4865)

* Fix broken blackbox fuzzer projects.

Regression from
https://github.com/google/oss-fuzz/pull/4769/files

* Fix indent.
This commit is contained in:
Abhishek Arya 2020-12-17 16:29:11 -08:00 committed by GitHub
parent 0110bb7ab0
commit 6718fb8bd6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 8 deletions

View File

@ -74,12 +74,13 @@ def find_fuzz_targets(directory, fuzzing_language):
continue
if not os.stat(path).st_mode & EXECUTABLE:
continue
with open(path, 'rb') as file_handle:
binary_contents = file_handle.read()
if b'LLVMFuzzerTestOneInput' not in binary_contents:
continue
if fuzzing_language != 'python' and not is_elf(path):
continue
if os.getenv('FUZZING_ENGINE') != 'none':
with open(path, 'rb') as file_handle:
binary_contents = file_handle.read()
if b'LLVMFuzzerTestOneInput' not in binary_contents:
continue
fuzz_targets.append(path)
return fuzz_targets

View File

@ -1,9 +1,6 @@
homepage: https://webkit.org/
language: c++
fuzzing_engines:
- none
sanitizers:
- address
primary_contact: "ddkilzer@apple.com"
auto_ccs:
- "mark.lam@apple.com"
- "akilsrin@apple.com"
@ -11,4 +8,9 @@ auto_ccs:
- "jfb@chromium.org"
- "sbarati@apple.com"
- "ysuzuki@apple.com"
fuzzing_engines:
- none
sanitizers:
- address
blackbox: true
main_repo: 'git://git.webkit.org/WebKit.git'