Lines Matching refs:Data

70 size_t MutationDispatcher::Mutate_Custom(uint8_t *Data, size_t Size,  in Mutate_Custom()  argument
72 return EF->LLVMFuzzerCustomMutator(Data, Size, MaxSize, Rand.Rand()); in Mutate_Custom()
75 size_t MutationDispatcher::Mutate_CustomCrossOver(uint8_t *Data, size_t Size, in Mutate_CustomCrossOver() argument
86 Data, Size, Other.data(), Other.size(), U.data(), U.size(), Rand.Rand()); in Mutate_CustomCrossOver()
90 memcpy(Data, U.data(), NewSize); in Mutate_CustomCrossOver()
94 size_t MutationDispatcher::Mutate_ShuffleBytes(uint8_t *Data, size_t Size, in Mutate_ShuffleBytes() argument
101 std::random_shuffle(Data + ShuffleStart, Data + ShuffleStart + ShuffleAmount, in Mutate_ShuffleBytes()
106 size_t MutationDispatcher::Mutate_EraseByte(uint8_t *Data, size_t Size, in Mutate_EraseByte() argument
112 memmove(Data + Idx, Data + Idx + 1, Size - Idx - 1); in Mutate_EraseByte()
116 size_t MutationDispatcher::Mutate_InsertByte(uint8_t *Data, size_t Size, in Mutate_InsertByte() argument
121 memmove(Data + Idx + 1, Data + Idx, Size - Idx); in Mutate_InsertByte()
122 Data[Idx] = RandCh(Rand); in Mutate_InsertByte()
126 size_t MutationDispatcher::Mutate_ChangeByte(uint8_t *Data, size_t Size, in Mutate_ChangeByte() argument
129 Data[Idx] = RandCh(Rand); in Mutate_ChangeByte()
133 size_t MutationDispatcher::Mutate_ChangeBit(uint8_t *Data, size_t Size, in Mutate_ChangeBit() argument
136 Data[Idx] = FlipRandomBit(Data[Idx], Rand); in Mutate_ChangeBit()
140 size_t MutationDispatcher::Mutate_AddWordFromManualDictionary(uint8_t *Data, in Mutate_AddWordFromManualDictionary() argument
143 return AddWordFromDictionary(ManualDictionary, Data, Size, MaxSize); in Mutate_AddWordFromManualDictionary()
147 uint8_t *Data, size_t Size, size_t MaxSize) { in Mutate_AddWordFromTemporaryAutoDictionary() argument
148 return AddWordFromDictionary(TempAutoDictionary, Data, Size, MaxSize); in Mutate_AddWordFromTemporaryAutoDictionary()
152 uint8_t *Data, size_t Size, size_t MaxSize) { in Mutate_AddWordFromPersistentAutoDictionary() argument
153 return AddWordFromDictionary(PersistentAutoDictionary, Data, Size, MaxSize); in Mutate_AddWordFromPersistentAutoDictionary()
156 size_t MutationDispatcher::AddWordFromDictionary(Dictionary &D, uint8_t *Data, in AddWordFromDictionary() argument
166 memmove(Data + Idx + W.size(), Data + Idx, Size - Idx); in AddWordFromDictionary()
167 memcpy(Data + Idx, W.data(), W.size()); in AddWordFromDictionary()
172 memcpy(Data + Idx, W.data(), W.size()); in AddWordFromDictionary()
179 size_t MutationDispatcher::Mutate_ChangeASCIIInteger(uint8_t *Data, size_t Size, in Mutate_ChangeASCIIInteger() argument
182 while (B < Size && !isdigit(Data[B])) B++; in Mutate_ChangeASCIIInteger()
185 while (E < Size && isdigit(Data[E])) E++; in Mutate_ChangeASCIIInteger()
189 uint64_t Val = Data[B] - '0'; in Mutate_ChangeASCIIInteger()
191 Val = Val * 10 + Data[i] - '0'; in Mutate_ChangeASCIIInteger()
206 Data[Idx] = (Val % 10) + '0'; in Mutate_ChangeASCIIInteger()
212 size_t MutationDispatcher::Mutate_CrossOver(uint8_t *Data, size_t Size, in Mutate_CrossOver() argument
221 CrossOver(Data, Size, Other.data(), Other.size(), U.data(), U.size()); in Mutate_CrossOver()
224 memcpy(Data, U.data(), NewSize); in Mutate_CrossOver()
272 size_t MutationDispatcher::Mutate(uint8_t *Data, size_t Size, size_t MaxSize) { in Mutate() argument
273 return MutateImpl(Data, Size, MaxSize, Mutators); in Mutate()
276 size_t MutationDispatcher::DefaultMutate(uint8_t *Data, size_t Size, in DefaultMutate() argument
278 return MutateImpl(Data, Size, MaxSize, DefaultMutators); in DefaultMutate()
282 size_t MutationDispatcher::MutateImpl(uint8_t *Data, size_t Size, in MutateImpl() argument
289 Data[i] = RandCh(Rand); in MutateImpl()
291 ToASCII(Data, MaxSize); in MutateImpl()
300 size_t NewSize = (this->*(M.Fn))(Data, Size, MaxSize); in MutateImpl()
303 ToASCII(Data, NewSize); in MutateImpl()