~/talk

Security in C++: Hardening techniques from the trenches

Talkat Meeting C++ 2024 · 2024-11-14..11-16· [security]
links:none on file
links:none on file
slides:none on file

Two mitigations land in Clang and libc++: a guaranteed traps standard‑library hardening that converts selected UB into immediate runtime traps with four modes (none, fast, extensive, debug) and per‑TU selection, and a typed operator new extension that passes a compiler type descriptor to a system allocator to bucket allocations by type. Both run in production (deployed in LLVM 17, WebKit, Chrome, XNU, Android), cut exploitability without rewriting most code, but only cover stdlib paths, can cost in hot loops, and do not eliminate dangling pointers.

AI-written summary · about

  1. 0:00C++ security challenges
  2. 7:29Memory safety in C++
  3. 13:08Undefined behavior in stdlib
  4. 20:50Hardening libC++
  5. 36:20Deployment of hardening
  6. 41:24Temporal memory safety
  7. 53:24Future of C++ security
  8. 57:46Q&A
~/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.