RustFest Rome 2018 - Yiming Jing : One Thousand Ways to Die in Rust FFI
4,073 views · Published 9 December 2018 · 30:39 · Indexed 30 October 2026
Channel: Rust Programming Language · 2018 · Science & Technology
Efficient FFI bindings are one of the core features of Rust; however dereferencing raw pointers, conversion between Rust and C types, memory allocation, ..., all could possibly go wrong in FFI code and undermine the memory safety guarantee of Rust. The Rustonomicon and a few previous talks at RustFest discuss the topic of Rust FFI; but overlook the challenges in writing correct and safe FFI code. In this talk, we discuss a taxonomy of common pitfalls in Rust FFI with real-world examples. Moreover, we will review relevant principles and share our approach to effectively avoid the pitfalls. https://rome.rustfest.eu/sessions/one-thousand-ways-to-die-in-rust-ffi https://media.ccc.de/v/rustfest-rome-9-one-thousand-ways-to-die-in-rust-ffi
More from this channel
-
1:00:14
Rust Meetup Cologne (2016-06-06): Alex Crichton - State of Rust 2016
-
13:48
Rust Meetup Cologne (2016-06-06): Andre Bogus - Clippy: Survey Results
-
27:46
PDXRust October 2016: RustProof
-
48:36
PDXRust July 2016: Andy Grover - Froyo
-
27:09
Brian Pearce - Learning to Love the Unfamiliar
-
22:20
Kai Michaelis - Panopticon - A Libre Cross-Platform Disassembler in Rust
-
36:09
Hanneli Tavante - Science tools borrow Rust
-
25:50
Sharon Steed - Empathetic communication: why vulnerability is the key to collaboration