microsoft / lain

A fuzzer framework built in Rust

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

UnstableEnum

Knight-Ops opened this issue · comments

What is the purpose is this type? It seems to always cast the variant to Invalid as well as just punting on mutation to the primitive value within the original variants.

In the example, the mutator does not only mutate between the provided variants, it passes a u32 to mutate and wraps the result in UnstableEnum::Invalid(u32). Which isn't what I would expect from an Enum mutation except for maybe very rarely (like ignoring tags).