GHSA-gx73-2498-r55c
Unsound casting in flatbuffers
Packages
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| crates.io | flatbuffers | >= 0.4.0, < 0.6.1 | 0.6.1 |
Details
As written in the advisory (Markdown source, shown as plain text).
The implementation of impl Follow for bool allows to reinterpret arbitrary bytes as a bool.
In Rust bool has stringent requirements for its in-memory representation. Use of this function allows to violate these requirements and invoke undefined behaviour in safe code.
References
External links from the advisory. They lead to third-party sites.