-
Notifications
You must be signed in to change notification settings - Fork 136
Closed
Description
It looks like we're using enums in FFI types in several places, but this is inherently unsafe as we can end up creating enums with arbitrary values and the rust type system will assume that this can't happen.
This can cause problems like:
- Code checking said enum value may be optimized away.
- If the enum has no zero variant but a zero is passed, rust may interpret
Option<Enum>asNone. - Really, whatever the rust compiler wants to do.
Jeremy917Audrey097
Metadata
Metadata
Assignees
Labels
No labels