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 cached::CachedOnDiskCorpus;
pub use queue::QueueCorpusScheduler;
pub use minimizer::FavFactor;
pub use minimizer::IsFavoredMetadata;
pub use minimizer::LenTimeMulFavFactor;
pub use minimizer::MinimizerCorpusScheduler;
pub use minimizer::TopRatedsMetadata;
pub use powersched::PowerQueueCorpusScheduler;

Modules

The cached ondisk corpus stores testcases to disk keeping a part of them in memory.

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

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

The ondisk corpus stores unused testcases to disk.

The queue corpus scheduler for power schedules.

The queue corpus scheduler implements an AFL-like queue mechanism

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

Structs

Feed the fuzzer simpply with a random testcase on request

Traits

Corpus with all current testcases

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

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.