fixed shrinking vector and un-mutated primitives #6
fixed shrinking vector and un-mutated primitives #6Knight-Ops wants to merge 4 commits intomicrosoft:masterfrom
Conversation
|
New changes include : Cargo.toml : Adding mutator.rs : Added a setter for mutation.rs : Added code generation for setting the actual number of fields of the structure being fuzzed this allows us to actually fuzz each field and not guess later how large the structure is. EDIT: Removed previous change of |
|
New changes include: mutator.rs : Added support for nested structure that are properly mutated with a simple fix of AddAssign the total number of fields to target |
This fixes an issues with Vec<_> mutation where the mutator can actually try to remove more bytes than exist in the vector. This causes a panic.
The fix here is pretty simple, we just take the min of the length of the vector or the randomly generated range.