mirror of https://github.com/google/oss-fuzz.git
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:
parent
0110bb7ab0
commit
6718fb8bd6
|
@ -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
|
||||
|
||||
|
|
|
@ -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'
|
||||
|
|
Loading…
Reference in New Issue