~/talk

Finding and fixing memory safety bugs in C with ASAN

Talkat RubyKaigi 2024 · 2024-05-15..05-17· [ruby, security]
slides:none on file

AddressSanitizer (ASAN) is integrated into CRuby so building with AddressSanitizer (ASAN) is documented in building ruby.md, compiles, and passes the test suite on the maintainer’s machine, but costs 2–5x runtime and needs tweaks: the GC learns about ASAN’s fake stacks, Ruby’s allocator uses ASAN poisoning calls, and historic callcc support is callcc disabled under ASAN. Running tests with ASAN finds very few real memory bugs so far (two minor cases), and CI/nightly ASAN and further sanitizers are planned.

AI-written summary · about

  1. 0:00Introduction
  2. 1:12What is AddressSanitizer
  3. 5:45Where ASAN fits
  4. 9:01How ASAN works
  5. 13:38ASAN in CRuby
  6. 20:20Existing bugs found
  7. 21:44Next steps for ASAN
  8. 25:41Key takeaways
  9. 27:06ASAN vs Valgrind
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.