class Corpus
Defined at line 29 of file ../../src/sys/fuzzing/realmfuzzer/engine/corpus.h
An alias to simplify passing around the shared corpora.
Public Methods
void Corpus ()
Public methods
Defined at line 21 of file ../../src/sys/fuzzing/realmfuzzer/engine/corpus.cc
Corpus & operator= (Corpus && other)
Defined at line 23 of file ../../src/sys/fuzzing/realmfuzzer/engine/corpus.cc
void Corpus (Corpus && other)
Defined at line 32 of file ../../src/sys/fuzzing/realmfuzzer/engine/corpus.h
void ~Corpus ()
Defined at line 33 of file ../../src/sys/fuzzing/realmfuzzer/engine/corpus.h
void Configure (const OptionsPtr & options)
Sets options. This will reset the PRNG.
Defined at line 33 of file ../../src/sys/fuzzing/realmfuzzer/engine/corpus.cc
size_t num_inputs ()
Defined at line 37 of file ../../src/sys/fuzzing/realmfuzzer/engine/corpus.h
size_t total_size ()
Defined at line 38 of file ../../src/sys/fuzzing/realmfuzzer/engine/corpus.h
CorpusPtr MakePtr ()
Defined at line 40 of file ../../src/sys/fuzzing/realmfuzzer/engine/corpus.h
zx_status_t Add (Input input)
Adds the input to the corpus. Returns ZX_ERR_BUFFER_TOO_SMALL if the input exceeds the max size
specified by the options; ZX_OK otherwise.
Defined at line 71 of file ../../src/sys/fuzzing/realmfuzzer/engine/corpus.cc
zx_status_t Add (CorpusPtr corpus)
Adds all inputs from the given |corpus| to this corpus. Returns ZX_ERR_INVALID_ARGS if |corpus|
is null, and ZX_ERR_BUFFER_TOO_SMALL if any/ input exceeds the max size specified by the
options. Otherwise, returns ZX_OK.
Defined at line 85 of file ../../src/sys/fuzzing/realmfuzzer/engine/corpus.cc
bool At (size_t offset, Input * out)
Returns true and the input at |offset| in the corpus via |out| if |offset| is less than the
number of inputs; otherwise returns false and sets |out| to an empty input.
Defined at line 97 of file ../../src/sys/fuzzing/realmfuzzer/engine/corpus.cc
void Pick (Input * out)
Returns a random element from the corpus via |out| This will always succeed, as this method
can pick the implicitly included empty element.
Defined at line 106 of file ../../src/sys/fuzzing/realmfuzzer/engine/corpus.cc