MCPcopy Create free account
hub / github.com/HexHive/NASS / Mutate_CopyPart

Method Mutate_CopyPart

fuzz/libfuzzer/FuzzerMutate.cpp:362–371  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

360}
361
362size_t MutationDispatcher::Mutate_CopyPart(uint8_t *Data, size_t Size,
363 size_t MaxSize) {
364 if (Size > MaxSize || Size == 0) return 0;
365 // If Size == MaxSize, `InsertPartOf(...)` will
366 // fail so there's no point using it in this case.
367 if (Size == MaxSize || Rand.RandBool())
368 return CopyPartOf(Data, Size, Data, Size);
369 else
370 return InsertPartOf(Data, Size, Data, Size, MaxSize);
371}
372
373size_t MutationDispatcher::Mutate_ChangeASCIIInteger(uint8_t *Data, size_t Size,
374 size_t MaxSize) {

Callers 1

TESTFunction · 0.80

Calls 1

RandBoolMethod · 0.80

Tested by 1

TESTFunction · 0.64