diff --git a/infra/build/functions/build_project.py b/infra/build/functions/build_project.py index 23ec94810f55..cbca6c909311 100755 --- a/infra/build/functions/build_project.py +++ b/infra/build/functions/build_project.py @@ -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' @@ -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 @@ -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): diff --git a/infra/ci/build.py b/infra/ci/build.py index 8e573ae68f20..18a22c95d6d0 100755 --- a/infra/ci/build.py +++ b/infra/ci/build.py @@ -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']