google/flatbuffers
View on GitHubRust: various unsafe traits/functions meant for gencode in public API
Open
#6,627 opened on May 10, 2021
help wantedpr-requestedrust
Repository metrics
- Stars
- (25,952 stars)
- PR merge metrics
- (Avg merge 25d 11h) (2 merged PRs in 30d)
Description
The following safe code will segfault:
fn main() {
let ptr: &&u8 = flatbuffers::follow_cast_ref(&[1, 2, 3, 4, 5, 6, 7, 8], 0);
println!("{}", **ptr);
}