~/talk

One Thousand Ways to Die in Rust FFI

Talkat RustFest Rome 2018 · 2018-11-24..11-25· [rust, security]
github:ymjing
slides:none on file

Taxonomy of common Rust FFI pitfalls, real-world examples and concrete fixes: implements OpenSSL APIs in missa link with 100% Rust code and reports 4.4 million monthly active users and a contribution to the curve project; demos show unchecked null pointers, panics crossing FFI, dangling returns from heap-allocated Strings, mismatched C char signedness, and allocator mismatches; recommends patterns like checking magic-bytes for opaque pointers, using catch_unwind, avoiding Box::into_raw across allocators, and tools such as cargo-clippy and whatwind.

AI-written summary · about

  1. 0:00Introduction
  2. 2:05Google X Lab
  3. 2:56Outline
  4. 7:30Pointers
  5. 10:30Type Conversion
  6. 15:20Memory Leaks
  7. 19:36Copy from C
  8. 22:50Starter pointers
  9. 24:37External tools
  10. 25:01Resources
  11. 25:30Tips
  12. 26:35Questions
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.