Module fuzzmutator::mutator [] [src]

Functions

add_substract_binary

In this function values in data:Vec<u8> will be decremented or incremented a random number of times.

append_data

Appends random bytes to data:Vec<u8>.

bitflipping

This function flips bits randomly in data:Vec<u8>.

byteflipping

This function flips bytes in data:Vec<u8>

chunk_spew

This function will replace a value in `data:Vec with another one in data:Vec.
Here is an example:
[1,2,3,4,5,6,7,8,9,0]
<- - - - -
[6,2,3,4,5,6,7,8,9,0]
In the above example 6 has been copied where 1 has previously been.

mutate

If you don't need specialized mutation you can use this function to choose the kind of mutation at random.

special_ints

In this function some special integers will be placed in data:Vec<u8>.

truncate

Shrinks data:Vec to a smaller size.