~/talk

Vulnerable C++

Talkat CppNorth 2023 · 2023-07-17..07-19· [security]
slides:none on file

C++ has concrete hazards: undefined behavior lets optimizers eliminate code and time-travel effects, and a handful of real examples show dangling references (including a max() misuse) that crash under AddressSanitizer. WG23 catalogs 64 vulnerabilities (now 65) and produces ISO 24772‑1 plus a C++ part; mitigations demonstrated include using std::string not C string APIs, prefer make_unique / no new/delete, follow Rule of Zero, enable sanitizers and -Werror, and add unit tests and static analysis.

AI-written summary · about

  1. 0:00Introduction
  2. 0:46Questions
  3. 2:16What is vulnerable
  4. 3:20What makes code vulnerable
  5. 6:15Learning curve
  6. 9:07Good unit tests
  7. 10:41Vulnerable C
  8. 18:38IEC JTC SC22WG23
  9. 20:09Language Independent Document
  10. 21:36Point Arithmetic
  11. 22:54Vulnerabilities
  12. 24:09Top avoidance mechanisms
  13. 25:25String termination
  14. 32:39Side Track
  15. 33:49Preconditioned checks and error handling
  16. 36:13C with errors
  17. 40:26Postcondition violation
  18. 41:51Undefined behaviors
  19. 43:55Strategy
  20. 48:00Parameters
  21. 52:37C dangling references
~/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.