예제 #1
0
def generate_new_testcase_mutations_using_ml_rnn(
    corpus_directory, new_testcase_mutations_directory, fuzzer_name,
    generation_timeout):
  """Generate new testcase mutations using ML RNN model."""
  # No return value for now. Will add later if this is necessary.
  ml_rnn_generator.execute(corpus_directory, new_testcase_mutations_directory,
                           fuzzer_name, generation_timeout)
예제 #2
0
def generate_new_testcase_mutations_using_ml_rnn(
    corpus_directory, new_testcase_mutations_directory, fuzzer_name,
    generation_timeout):
  """Generate new testcase mutations using ML RNN model."""
  # No return value for now. Will add later if this is necessary.
  # Defer import to prevent issues with tensorflow causing hangs with
  # multiprocessing.
  # TODO(ochang): handle this is a better way.
  from bot.fuzzers.ml.rnn import generator as ml_rnn_generator
  ml_rnn_generator.execute(corpus_directory, new_testcase_mutations_directory,
                           fuzzer_name, generation_timeout)
예제 #3
0
def generate_new_testcase_mutations_using_ml_rnn(
        corpus_directory, new_testcase_mutations_directory, fuzzer_name,
        generation_timeout):
    """Generate new testcase mutations using ML RNN model."""
    # No return value for now. Will add later if this is necessary.
    # Defer import to prevent issues with tensorflow causing hangs with
    # multiprocessing.
    try:
        from bot.fuzzers.ml.rnn import generator as ml_rnn_generator
    except Exception:
        logs.log_warn('Failed to import ml_rnn generator, skipping.')
        return

    ml_rnn_generator.execute(corpus_directory,
                             new_testcase_mutations_directory, fuzzer_name,
                             generation_timeout)