llvm.org GIT mirror llvm / a575cf6
[libFuzzer] enable reduce_inputs=1 by default (seems to be a big win usually) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@308541 91177308-0d34-0410-b5e6-96231b3b80d8 Kostya Serebryany 2 years ago
4 changed file(s) with 9 addition(s) and 6 deletion(s). Raw diff Collapse all Expand all
344344 ``NEW``
345345 The fuzzer has created a test input that covers new areas of the code
346346 under test. This input will be saved to the primary corpus directory.
347 ``REDUCE``
348 The fuzzer has found a better (smaller) input that triggers previously
349 discovered features (set ``-reduce_inputs=0`` to disable).
347350 ``pulse``
348351 The fuzzer has generated 2\ :sup:`n` inputs (generated periodically to reassure
349352 the user that the fuzzer is still working).
6565 "Experimental. Use value profile to guide fuzzing.")
6666 FUZZER_FLAG_INT(use_cmp, 1, "Use CMP traces to guide mutations")
6767 FUZZER_FLAG_INT(shrink, 0, "Experimental. Try to shrink corpus inputs.")
68 FUZZER_FLAG_INT(reduce_inputs, 0, "Experimental. "
69 "Try to reduce the size of inputs wile preserving their full feature sets")
68 FUZZER_FLAG_INT(reduce_inputs, 1,
69 "Try to reduce the size of inputs while preserving their full feature sets")
7070 FUZZER_FLAG_UNSIGNED(jobs, 0, "Number of jobs to run. If jobs >= 1 we spawn"
7171 " this number of jobs in separate worker processes"
7272 " with stdout/stderr redirected to fuzz-JOB.log.")
None RUN: LLVMFuzzer-ShrinkControlFlowTest -seed=1 -exit_on_item=0eb8e4ed029b774d80f2b66408203801cb982a60 -runs=1000000 -shrink=1 2>&1 | FileCheck %s --check-prefix=SHRINK1
1 RUN: LLVMFuzzer-ShrinkControlFlowTest -seed=1 -exit_on_item=0eb8e4ed029b774d80f2b66408203801cb982a60 -runs=1000000 -shrink=0 2>&1 | FileCheck %s --check-prefix=SHRINK0
2 RUN: LLVMFuzzer-ShrinkValueProfileTest -seed=1 -exit_on_item=aea2e3923af219a8956f626558ef32f30a914ebc -runs=100000 -shrink=1 -use_value_profile=1 2>&1 | FileCheck %s --check-prefix=SHRINK1_VP
0 RUN: LLVMFuzzer-ShrinkControlFlowTest -seed=1 -exit_on_item=0eb8e4ed029b774d80f2b66408203801cb982a60 -runs=1000000 -shrink=1 -reduce_inputs=0 2>&1 | FileCheck %s --check-prefix=SHRINK1
1 RUN: LLVMFuzzer-ShrinkControlFlowTest -seed=1 -exit_on_item=0eb8e4ed029b774d80f2b66408203801cb982a60 -runs=1000000 -shrink=0 -reduce_inputs=0 2>&1 | FileCheck %s --check-prefix=SHRINK0
2 RUN: LLVMFuzzer-ShrinkValueProfileTest -seed=1 -exit_on_item=aea2e3923af219a8956f626558ef32f30a914ebc -runs=100000 -shrink=1 -reduce_inputs=0 -use_value_profile=1 2>&1 | FileCheck %s --check-prefix=SHRINK1_VP
33
44 SHRINK0: Done 1000000 runs in
55 SHRINK1: INFO: found item with checksum '0eb8e4ed029b774d80f2b66408203801cb982a60', exiting.
0 CHECK: AddressSanitizer: global-buffer-overflow
1 RUN: not LLVMFuzzer-LoadTest -seed=1 -use_cmp=0 -use_value_profile=1 -runs=10000000 2>&1 | FileCheck %s
1 RUN: not LLVMFuzzer-LoadTest -seed=2 -use_cmp=0 -use_value_profile=1 -runs=20000000 2>&1 | FileCheck %s
22