Skip to content

Commit

Permalink
Make centipede a default fuzzer
Browse files Browse the repository at this point in the history
Related: #9299
  • Loading branch information
jonathanmetzman committed Dec 28, 2022
1 parent 761b17e commit bbcdce1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions infra/build/functions/build_project.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
GCB_LOGS_BUCKET = 'oss-fuzz-gcb-logs'

DEFAULT_ARCHITECTURES = ['x86_64']
DEFAULT_ENGINES = ['libfuzzer', 'afl', 'honggfuzz']
DEFAULT_ENGINES = ['libfuzzer', 'afl', 'honggfuzz', 'centipede']
DEFAULT_SANITIZERS = ['address', 'undefined']

LATEST_VERSION_FILENAME = 'latest.version'
Expand Down Expand Up @@ -118,7 +118,7 @@ def get_sanitizer_strings(sanitizers):
return processed_sanitizers


def set_default_sanitizer_for_centipede(project_yaml):
def add_none_sanitizer_for_centipede(project_yaml):
"""Adds none as a sanitizer for centipede in yaml if it does not exist yet."""
# Centipede requires a separate unsanitized binary to use sanitized ones.
if ('centipede' in project_yaml['fuzzing_engines'] and
Expand Down Expand Up @@ -177,7 +177,7 @@ def set_yaml_defaults(project_yaml):
project_yaml.setdefault('labels', {})
# Adds 'none' as a sanitizer for centipede to the project yaml by default,
# because Centipede always requires a separate build of unsanitized binary.
set_default_sanitizer_for_centipede(project_yaml)
add_none_sanitizer_for_centipede(project_yaml)


def is_supported_configuration(build):
Expand Down
2 changes: 1 addition & 1 deletion infra/ci/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
CANARY_PROJECT = 'skcms'

DEFAULT_ARCHITECTURES = ['x86_64']
DEFAULT_ENGINES = ['afl', 'honggfuzz', 'libfuzzer']
DEFAULT_ENGINES = ['afl', 'honggfuzz', 'libfuzzer', 'centipede']
DEFAULT_SANITIZERS = ['address', 'undefined']


Expand Down

0 comments on commit bbcdce1

Please sign in to comment.