~/talk

Secure Programming Practices in C++

Talkat NDC Oslo 2018 · 2018-06-11..06-15· [security]
slides:none on file

C++ has a smaller, safer subset to prefer and the talk shows concrete failure modes and fixes: the optimizer can remove credentials from memory (the disappearing memset), unsigned wraparound and signed overflow let length checks be bypassed (unsigned wraparound), and common bugs include stack/heap overflows, use‑after‑free and format string leaks. Practical remedies include the C++ Core Guidelines, prefer std::string, enum class, user‑defined literals, use_unique_ptr over new, avoid shared_ptr and raw pointers, and use sanitizers and fuzzers with static and dynamic analysis.

AI-written summary · about

  1. 0:00Introduction
  2. 1:27Agenda
  3. 1:59What kind of specs exists
  4. 2:09C Core Guidelines
  5. 2:57C Coding Standard
  6. 3:34Common Weakness Enumeration
  7. 4:07Undefined Behavior
  8. 6:26Undefined Behavior Example
  9. 7:37Compiler Optimizations
  10. 8:16The Disappearing Memset
  11. 9:23Live Demo
  12. 10:30References
  13. 10:59Era of the SAE
  14. 11:42Exploitability
  15. 14:53Sign Integer Overflow
  16. 16:27Overflows
  17. 19:05Buffer Underflow
  18. 21:30Incorrect Type Conversion
  19. 22:07The Good Thing
  20. 23:45Use Your Tools
  21. 27:12Avoid loops
  22. 28:13Save casts
  23. 29:08Allocation
  24. 30:45Garbage Collection
  25. 31:19Make Sure
  26. 32:11No Semantics
  27. 33:33enum class
  28. 34:58string literal
  29. 35:45loop
  30. 36:12literals
  31. 36:51struct
  32. 37:09quote operator
  33. 37:40semantics to numbers
  34. 38:10sizes
  35. 38:45fuzzers
  36. 39:12taint
  37. 40:54pointer
  38. 42:24clever code
  39. 43:47shared pointer
  40. 45:45shared state
  41. 47:03modern C
~/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.