Lines Matching refs:Data
45 typedef int (*UserCallback)(const uint8_t *Data, size_t Size);
60 memcpy(Data, B, S);
65 return Size == w.Size && 0 == memcmp(Data, w.Data, Size);
71 return memcmp(Data, w.Data, Size) < 0;
75 const uint8_t *data() const { return Data; }
80 uint8_t Data[kMaxSize];
100 void PrintHexArray(const uint8_t *Data, size_t Size,
102 void PrintASCII(const uint8_t *Data, size_t Size, const char *PrintAfter = "");
120 // Computes SHA1 hash of 'Len' bytes in 'Data', writes kSHA1NumBytes to 'Out'.
121 void ComputeSHA1(const uint8_t *Data, size_t Len, uint8_t *Out);
125 bool ToASCII(uint8_t *Data, size_t Size);
127 bool IsASCII(const uint8_t *Data, size_t Size);
250 /// Mutates data by invoking user-provided mutator.
251 size_t Mutate_Custom(uint8_t *Data, size_t Size, size_t MaxSize);
252 /// Mutates data by invoking user-provided crossover.
253 size_t Mutate_CustomCrossOver(uint8_t *Data, size_t Size, size_t MaxSize);
254 /// Mutates data by shuffling bytes.
255 size_t Mutate_ShuffleBytes(uint8_t *Data, size_t Size, size_t MaxSize);
256 /// Mutates data by erasing a byte.
257 size_t Mutate_EraseByte(uint8_t *Data, size_t Size, size_t MaxSize);
258 /// Mutates data by inserting a byte.
259 size_t Mutate_InsertByte(uint8_t *Data, size_t Size, size_t MaxSize);
260 /// Mutates data by chanding one byte.
261 size_t Mutate_ChangeByte(uint8_t *Data, size_t Size, size_t MaxSize);
262 /// Mutates data by chanding one bit.
263 size_t Mutate_ChangeBit(uint8_t *Data, size_t Size, size_t MaxSize);
265 /// Mutates data by adding a word from the manual dictionary.
266 size_t Mutate_AddWordFromManualDictionary(uint8_t *Data, size_t Size,
269 /// Mutates data by adding a word from the temporary automatic dictionary.
270 size_t Mutate_AddWordFromTemporaryAutoDictionary(uint8_t *Data, size_t Size,
273 /// Mutates data by adding a word from the persistent automatic dictionary.
274 size_t Mutate_AddWordFromPersistentAutoDictionary(uint8_t *Data, size_t Size,
277 /// Tries to find an ASCII integer in Data, changes it to another ASCII int.
278 size_t Mutate_ChangeASCIIInteger(uint8_t *Data, size_t Size, size_t MaxSize);
280 /// CrossOver Data with some other element of the corpus.
281 size_t Mutate_CrossOver(uint8_t *Data, size_t Size, size_t MaxSize);
284 /// Returns the new size of data which could be up to MaxSize.
285 size_t Mutate(uint8_t *Data, size_t Size, size_t MaxSize);
288 size_t DefaultMutate(uint8_t *Data, size_t Size, size_t MaxSize);
290 /// Creates a cross-over of two pieces of Data, returns its size.
307 size_t (MutationDispatcher::*Fn)(uint8_t *Data, size_t Size, size_t Max);
311 size_t AddWordFromDictionary(Dictionary &D, uint8_t *Data, size_t Size,
313 size_t MutateImpl(uint8_t *Data, size_t Size, size_t MaxSize,
379 void AssignTaintLabels(uint8_t *Data, size_t Size);
405 void ExecuteCallback(const uint8_t *Data, size_t Size);
406 bool RunOne(const uint8_t *Data, size_t Size);
421 size_t GetCurrentUnitInFuzzingThead(const uint8_t **Data) const;
429 bool RunOne(const Unit &U) { return RunOne(U.data(), U.size()); }
430 void RunOneAndUpdateCorpus(const uint8_t *Data, size_t Size);
436 void TryDetectingAMemoryLeak(const uint8_t *Data, size_t Size,