Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

README.md

Fuzz

Corpus input rejection mode

libFuzzer has an optional mechanism to explicitly reject fuzz inputs. This directive forces the fuzzer to forget the observed coverage for the current input, and does not allow adding it to the corpus collection.

Use the custom --features reject-invalid-in-corpus crate feature to enable this logic in the fuzz harnesses that make use of it. The flag is optional and off by default, see Cargo.toml.

This is a heavy-handed approach and reduces fuzzer coverage visibility into the rejected code paths, but may be useful for time-constrained runs.

Expected effects:

  1. reduce some runtime overhead on rejected inputs by skipping post-processing steps
  2. increases ratio of "valid" inputs in working corpus

The expectation is that this makes it more likely to create valid inputs by mutation, at least on short runs with a limited amount of executions that start on a pre-seeded corpus.

Seed corpus

Fuzzer dictionary