Skip to content

Commit 18830e1

Browse files
Remove dead fuzzer code (#4152)
1 parent 8451175 commit 18830e1

File tree

7 files changed

+0
-70
lines changed

7 files changed

+0
-70
lines changed

src/clusterfuzz/_internal/bot/fuzzers/afl/constants.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,6 @@
6464
CMPLOG_RAND = 'R'
6565

6666
# AFL environment variables.
67-
MAP_SIZE_ENV_VAR = 'AFL_MAP_SIZE'
68-
6967
IGNORE_UNKNOWN_ENVS_ENV_VAR = 'AFL_IGNORE_UNKNOWN_ENVS'
7068

7169
SKIP_CRASHES_ENV_VAR = 'AFL_SKIP_CRASHES'

src/clusterfuzz/_internal/bot/fuzzers/afl/launcher.py

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -400,12 +400,6 @@ class AflFuzzInputDirectory:
400400
afl-fuzz as the -i argument.
401401
"""
402402

403-
# If the number of input files is less than this, don't bother skipping
404-
# deterministic steps since it won't take long.
405-
MIN_INPUTS_FOR_SKIP = 10
406-
407-
MAX_COPIED_CORPUS_SIZE = 2**30 # 1 GB
408-
409403
def __init__(self, input_directory, target_path, fuzzing_strategies):
410404
"""Inits AflFuzzInputDirectory.
411405
@@ -671,13 +665,6 @@ def set_arg(cls, afl_args, flag, value):
671665

672666
return afl_args
673667

674-
@classmethod
675-
def remove_arg(cls, afl_args, flag):
676-
idx = cls.get_arg_index(afl_args, flag)
677-
if idx == -1:
678-
return
679-
del afl_args[idx]
680-
681668
@classmethod
682669
def set_input_arg(cls, afl_args, new_input_value):
683670
"""Changes the input argument (-i) in |afl_args| to |new_input_value|."""

src/clusterfuzz/_internal/bot/fuzzers/afl/strategies.py

Lines changed: 0 additions & 25 deletions
This file was deleted.

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@
3939
EXTRA_BINARIES_FLAGNAME = 'extra_binaries'
4040
EXIT_ON_CRASH_FLAGNAME = 'exit_on_crash'
4141

42-
TIMEOUT_PER_INPUT_REPR = 60
4342
NUM_RUNS_PER_MINIMIZATION = 100000
4443

4544

src/clusterfuzz/_internal/bot/fuzzers/engine_common.py

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -506,23 +506,6 @@ def recreate_directory(directory_path):
506506
raise OSError('Failed to recreate directory: ' + directory_path)
507507

508508

509-
def strip_minijail_command(command, fuzzer_path):
510-
"""Remove minijail arguments from a fuzzer command.
511-
512-
Args:
513-
command: The command.
514-
fuzzer_path: Absolute path to the fuzzer.
515-
516-
Returns:
517-
The stripped command.
518-
"""
519-
try:
520-
fuzzer_path_index = command.index(fuzzer_path)
521-
return command[fuzzer_path_index:]
522-
except ValueError:
523-
return command
524-
525-
526509
def write_data_to_file(content, file_path):
527510
"""Writes data to file."""
528511
with open(file_path, 'wb') as file_handle:

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

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,6 @@
2222
_CRASH_REGEX = re.compile(r'.*Reproducer file written to:\s*(.*)$')
2323

2424

25-
class GoogleFuzzTestError(Exception):
26-
"""Base exception class."""
27-
28-
2925
def _get_reproducer_path(line):
3026
"""Get the reproducer path, if any."""
3127
crash_match = _CRASH_REGEX.match(line)

src/clusterfuzz/_internal/bot/fuzzers/libfuzzer.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,6 @@
4343
# Allow 30 minutes to merge the testcases back into the corpus.
4444
DEFAULT_MERGE_TIMEOUT = 30 * 60
4545

46-
MERGED_DICT_SUFFIX = '.merged'
47-
4846
StrategyInfo = collections.namedtuple('StrategiesInfo', [
4947
'fuzzing_strategies',
5048
'arguments',
@@ -1315,12 +1313,6 @@ def get_fuzz_timeout(is_mutations_run, total_timeout=None):
13151313
return fuzz_timeout
13161314

13171315

1318-
def is_linux_asan():
1319-
"""Helper functions. Returns whether or not the current env is linux asan."""
1320-
return (environment.platform() != 'LINUX' or
1321-
environment.get_value('MEMORY_TOOL') != 'ASAN')
1322-
1323-
13241316
def is_sha1_hash(possible_hash):
13251317
"""Returns True if |possible_hash| looks like a valid sha1 hash."""
13261318
if len(possible_hash) != 40:

0 commit comments

Comments
 (0)