~/talk

Debugging memory corruptions in C++

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

Covers concrete bug classes — buffer overflows, use‑after‑free, SSO and string_view null termination traps, moved‑from objects and missing special member functions, and how new/delete operator overloads can redirect allocation paths — and how hardware cache and alignment bite back. Uses compiler flags (-Wall -Wextra), static analyzers, runtime sanitizers like ASan, Valgrind and GWP‑ASan, Microsoft user/driver tools, and demonstrates a homemade stack‑smashing detector plus memory pooling (PMR) approaches with working examples and tradeoffs.

AI-written summary · about

  1. 0:00Introduction
  2. 1:46Memory corruptions and causes
  3. 3:53Stack structure and overflow risks
  4. 5:20C++ dark corners
  5. 7:34Implementation-defined traps
  6. 10:08String handling pitfalls
  7. 12:06Compiler constructors and rule of zero
  8. 13:58Overriding delete operators
  9. 16:10Hardware memory traps
  10. 19:00Preventing memory corruptions
  11. 23:06Static analyzers and flags
  12. 25:38Compiler warnings and annotations
  13. 27:55Sanitizers for runtime errors
  14. 30:48Advanced sanitizers and tools
  15. 32:42Manual detection techniques
  16. 35:16Stack smashing detection
  17. 39:43Code review and collaboration
  18. 41:57Q&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.