google/flatbuffers

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

オープン

#6,627 opened on 2021/05/10

 (29 件のコメント) (2 件のリアクション) (0 人の担当者)C++ (3,564 件のフォーク)batch import
help wantedpr-requestedrust

Repository metrics

Stars
 (25,952 個のスター)
PR merge metrics
 (PR metrics pending)

説明

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

コントリビューターガイド