class Dictionary

Defined at line 27 of file ../../src/sys/fuzzing/common/dictionary.h

This class represents a dictionary of input language keywords or other byte sequences that may be

included in generating test inputs that are likely to uncover new features in a target, e.g.

"GET" or "POST" for a fuzzer that takes HTTP inputs. The file format is the same as that of AFL,

although it is best described by libFuzzer: https://llvm.org/docs/LibFuzzer.html#dictionaries

Public Methods

Dictionary & operator= (Dictionary && other)

Defined at line 21 of file ../../src/sys/fuzzing/common/dictionary.cc

void Dictionary ()

Defined at line 32 of file ../../src/sys/fuzzing/common/dictionary.h

void Configure (const OptionsPtr & options)

Sets options.

Defined at line 33 of file ../../src/sys/fuzzing/common/dictionary.cc

void Dictionary (Dictionary && other)

Defined at line 33 of file ../../src/sys/fuzzing/common/dictionary.h

void ~Dictionary ()

Defined at line 34 of file ../../src/sys/fuzzing/common/dictionary.h

void Add (const void * data, size_t size, uint16_t level)

Adds |size| bytes as a word to this dictionary.

Defined at line 35 of file ../../src/sys/fuzzing/common/dictionary.cc

void Add (Word && word, uint16_t level)

Adds a |word| to the dictionary.

Defined at line 40 of file ../../src/sys/fuzzing/common/dictionary.cc

bool Parse (const Input & input)

Resets the dictionary to an initial state and attempts to interpret the given input as a

dictionary. Invalid entries are skipped.

Defined at line 45 of file ../../src/sys/fuzzing/common/dictionary.cc

Input AsInput ()

Writes the dictionary out to an input.

Defined at line 163 of file ../../src/sys/fuzzing/common/dictionary.cc

void ForEachWord (fit::function<void (const uint8_t *, size_t)> func)

Apply |func| to each word in the dictionary with a level at or below the previously

|Configure|d dictionary level (default is 0).

Defined at line 195 of file ../../src/sys/fuzzing/common/dictionary.cc