~/talk

C++ and Safety

Talkat CppNorth 2023 · 2023-07-17..07-19· [c-and-cpp]
links:none on file
slides:none on file

Governments and agencies (NSA, NIST, White House) push away from memory-unsafe languages after studies that find about 70% of vulnerabilities trace to memory bugs. C++ lacks mandatory protections: compilers, sanitizers and static analysers (e.g. AddressSanitizer and static analysers) catch many issues but can’t eliminate undefined behavior without breaking performance or compatibility. Lifetime safety has three practical approaches—GC, runtime checking (ASan), or static borrow checking like Rust's borrow checker—and the core claim is C++ cannot be made fully memory‑safe without becoming a different language.

AI-written summary · about

  1. 0:00Introduction and motivation
  2. 1:07Safety vs security vs correctness
  3. 5:59Language safety in C++
  4. 15:07Government push for memory safety
  5. 22:30Undefined behavior in C++
  6. 24:14Type safety issues
  7. 27:26Bounds safety challenges
  8. 32:02Lifetime safety problems
  9. 39:27Initialization safety concerns
  10. 44:06Thread safety risks
  11. 47:36Arithmetic safety pitfalls
  12. 49:23Definition safety issues
  13. 51:09Can C++ ever be safe?
  14. 57:49Survey on undefined behavior impact
  15. 1:00:59Future of C++ and safety
~/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.