Skip to content

Rust: various unsafe traits/functions meant for gencode in public API #6627

@TethysSvensson

Description

@TethysSvensson

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);
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedpr-requestedA Pull Request is requested to move the issue forward.rust

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions