forked from OSchip/llvm-project
[libFuzzer] deprecate the -tokens flag. This was a bad idea because the corpus with this flag contains encrypted inputs, not the real inputs, which complicates interoperation with other fuzzers. Instead we'll need to implement AFL dictionary support
llvm-svn: 246734
This commit is contained in:
parent
b03ea02479
commit
6ea1b69fcf
|
@ -238,7 +238,7 @@ int FuzzerDriver(int argc, char **argv, UserSuppliedFuzzer &USF) {
|
|||
Options.UseFullCoverageSet = Flags.use_full_coverage_set;
|
||||
Options.PreferSmallDuringInitialShuffle =
|
||||
Flags.prefer_small_during_initial_shuffle;
|
||||
Options.Tokens = ReadTokensFile(Flags.tokens);
|
||||
Options.Tokens = ReadTokensFile(Flags.deprecated_tokens);
|
||||
Options.Reload = Flags.reload;
|
||||
Options.OnlyASCII = Flags.only_ascii;
|
||||
Options.TBMDepth = Flags.tbm_depth;
|
||||
|
|
|
@ -50,8 +50,9 @@ FUZZER_FLAG_INT(workers, 0,
|
|||
FUZZER_FLAG_INT(reload, 1,
|
||||
"Reload the main corpus periodically to get new units"
|
||||
" discovered by other processes.")
|
||||
FUZZER_FLAG_STRING(tokens, "Use the file with tokens (one token per line) to"
|
||||
" fuzz a token based input language.")
|
||||
FUZZER_FLAG_STRING(deprecated_tokens,
|
||||
"Use the file with tokens (one token per line) to"
|
||||
" fuzz a token based input language.")
|
||||
FUZZER_FLAG_STRING(apply_tokens, "Read the given input file, substitute bytes "
|
||||
" with tokens and write the result to stdout.")
|
||||
FUZZER_FLAG_STRING(sync_command, "Execute an external command "
|
||||
|
|
|
@ -21,7 +21,7 @@ RUN: not LLVMFuzzer-CounterTest -use_counters=1 -max_len=6 -seed=1 -timeout=15 2
|
|||
|
||||
RUN: not LLVMFuzzer-SimpleCmpTest -use_traces=1 -seed=1 -runs=1000000 -timeout=5 2>&1 | FileCheck %s
|
||||
|
||||
RUN: not LLVMFuzzer-CxxTokensTest -seed=1 -timeout=15 -tokens=%S/../cxx_fuzzer_tokens.txt 2>&1 | FileCheck %s
|
||||
RUN: not LLVMFuzzer-CxxTokensTest -seed=1 -timeout=15 -deprecated_tokens=%S/../cxx_fuzzer_tokens.txt 2>&1 | FileCheck %s
|
||||
|
||||
RUN: not LLVMFuzzer-UserSuppliedFuzzerTest -seed=1 -timeout=15 2>&1 | FileCheck %s
|
||||
|
||||
|
|
Loading…
Reference in New Issue