Module libafl::corpus[][src]

Expand description

Corpuses contain the testcases, either in mem, on disk, or somewhere else.

Re-exports

pub use testcase::Testcase;
pub use inmemory::InMemoryCorpus;
pub use ondisk::OnDiskCorpus;
pub use queue::QueueCorpusScheduler;
pub use minimizer::FavFactor;
pub use minimizer::IndexesLenTimeMinimizerCorpusScheduler;
pub use minimizer::IsFavoredMetadata;
pub use minimizer::LenTimeMinimizerCorpusScheduler;
pub use minimizer::LenTimeMulFavFactor;
pub use minimizer::MinimizerCorpusScheduler;
pub use minimizer::TopRatedsMetadata;

Modules

inmemory

In-memory corpus, keeps all test cases in memory at all times

minimizer

The Minimizer schedulers are a family of corpus schedulers that feed the fuzzer

ondisk

The ondisk corpus stores unused testcases to disk.

queue

The queue corpus scheduler implements an AFL-like queue mechanism

testcase

The testcase is a struct embedded in each corpus. It will contain a respective input, and metadata.

Structs

RandCorpusScheduler

Feed the fuzzer simpply with a random testcase on request

Traits

Corpus

Corpus with all current testcases

CorpusScheduler

The scheduler define how the fuzzer requests a testcase from the corpus. It has hooks to corpus add/replace/remove to allow complex scheduling algorithms to collect data.

Type Definitions

StdCorpusScheduler

A StdCorpusScheduler uses the default scheduler in LibAFL to schedule Testcases The current Std is a RandCorpusScheduler, although this may change in the future, if another CorpusScheduler delivers better results.