Skip to content

Commit ed2c78e

Browse files
authored
Set rss_limit_mb to 0 by default for chromium/google centipede targets (google#5207)
This matches the behavior for libFuzzer targets: https://github.com/google/clusterfuzz/blob/9f0c774d414c1d9be2926ed0a8a1ef69d44dd8bd/src/clusterfuzz/_internal/bot/fuzzers/libFuzzer/fuzzer.py#L48-L51
1 parent 9f0c774 commit ed2c78e

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

  • src/clusterfuzz/_internal/bot/fuzzers/centipede

src/clusterfuzz/_internal/bot/fuzzers/centipede/engine.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
from typing import Optional
2525
from typing import Union
2626

27+
from clusterfuzz._internal.base import utils
2728
from clusterfuzz._internal.bot.fuzzers import dictionary_manager
2829
from clusterfuzz._internal.bot.fuzzers import engine_common
2930
from clusterfuzz._internal.bot.fuzzers import options as fuzzer_options
@@ -425,9 +426,12 @@ def reproduce(self, target_path, input_path, arguments, max_time): # pylint: di
425426

426427
existing_runner_flags = os.environ.get('CENTIPEDE_RUNNER_FLAGS')
427428
if not existing_runner_flags:
428-
rss_limit = constants.RSS_LIMIT_MB_DEFAULT
429429
if constants.RSS_LIMIT_MB_FLAGNAME in fuzzer_arguments:
430430
rss_limit = fuzzer_arguments[constants.RSS_LIMIT_MB_FLAGNAME]
431+
elif (utils.is_chromium() or utils.default_project_name() == 'google'):
432+
rss_limit = 0
433+
else:
434+
rss_limit = constants.RSS_LIMIT_MB_DEFAULT
431435
timeout = constants.TIMEOUT_PER_INPUT_REPR_DEFAULT
432436
if constants.TIMEOUT_PER_INPUT_FLAGNAME in fuzzer_arguments:
433437
timeout = fuzzer_arguments[constants.TIMEOUT_PER_INPUT_FLAGNAME]

0 commit comments

Comments
 (0)