diff options
Diffstat (limited to 'libfuzzer/FuzzerMutate.h')
-rw-r--r-- | libfuzzer/FuzzerMutate.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/libfuzzer/FuzzerMutate.h b/libfuzzer/FuzzerMutate.h index 6cbce80..fd37191 100644 --- a/libfuzzer/FuzzerMutate.h +++ b/libfuzzer/FuzzerMutate.h @@ -24,8 +24,11 @@ public: ~MutationDispatcher() {} /// Indicate that we are about to start a new sequence of mutations. void StartMutationSequence(); - /// Print the current sequence of mutations. - void PrintMutationSequence(); + /// Print the current sequence of mutations. Only prints the full sequence + /// when Verbose is true. + void PrintMutationSequence(bool Verbose = true); + /// Return the current sequence of mutations. + std::string MutationSequence(); /// Indicate that the current sequence of mutations was successful. void RecordSuccessfulMutationSequence(); /// Mutates data by invoking user-provided mutator. @@ -40,9 +43,9 @@ public: size_t Mutate_InsertByte(uint8_t *Data, size_t Size, size_t MaxSize); /// Mutates data by inserting several repeated bytes. size_t Mutate_InsertRepeatedBytes(uint8_t *Data, size_t Size, size_t MaxSize); - /// Mutates data by chanding one byte. + /// Mutates data by changing one byte. size_t Mutate_ChangeByte(uint8_t *Data, size_t Size, size_t MaxSize); - /// Mutates data by chanding one bit. + /// Mutates data by changing one bit. size_t Mutate_ChangeBit(uint8_t *Data, size_t Size, size_t MaxSize); /// Mutates data by copying/inserting a part of data into a different place. size_t Mutate_CopyPart(uint8_t *Data, size_t Size, size_t MaxSize); @@ -126,9 +129,6 @@ public: // Dictionary provided by the user via -dict=DICT_FILE. Dictionary ManualDictionary; - // Temporary dictionary modified by the fuzzer itself, - // recreated periodically. - Dictionary TempAutoDictionary; // Persistent dictionary modified by the fuzzer, consists of // entries that led to successful discoveries in the past mutations. Dictionary PersistentAutoDictionary; |