Module libafl::corpus

source ·
Expand description

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

Re-exports§

Modules§

  • The CachedOnDiskCorpus stores Testcases to disk, keeping a subset of them in memory/cache, evicting in a FIFO manner.
  • In-memory corpus, keeps all test cases in memory at all times
  • The InMemoryOnDiskCorpus stores Testcases to disk. Additionally, all of them are kept in memory. For a lower memory footprint, consider using crate::corpus::CachedOnDiskCorpus which only stores a certain number of Testcases and removes additional ones in a FIFO manner.
  • Whole corpus minimizers, for reducing the number of samples/the total size/the average runtime of your corpus.
  • The null corpus does not store any Testcases.
  • The ondisk corpus stores all Testcases to disk. It never keeps any of them in memory. This is a good solution for solutions that are never reused, and for very memory-constraint environments. For any other occasions, consider using crate::corpus::CachedOnDiskCorpus which stores a certain number of testcases in memory and removes additional ones in a FIFO manner.
  • The testcase is a struct embedded in each corpus. It will contain a respective input, and metadata.

Structs§

Traits§