~/talk

The Most Popular Bugs and Code Smells in C and C++

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

Sonar data yields a ranked list of the most common static-detectable bugs in C/C++ (ranking = reach + bug count ÷ 2), led by uninitialized variables, buffer overflows, null dereferences, leaks, identical-expr bugs, missing returns, destructors throwing and single-iteration loops. Detection uses clang AST matchers and symbolic execution; mitigation includes modern C++ (std::string/vector/unique_ptr), compiler warnings, and sanitizers — e.g. AddressSanitizer and ThreadSanitizer — which the presenter shows finding real-world issues and a Sonar-derived top-10 (slides and survey linked in uploader description).

AI-written summary · about

  1. 0:00Notorious bugs in C/C++
  2. 1:49Static analysis tools
  3. 14:56Top 10 bugs ranked
  4. 18:09Uninitialized variables
  5. 22:26Buffer overflows alternatives
  6. 25:59Null pointer dereferences
  7. 28:26Unreachable code flaws
  8. 29:54Resource leaks RAII
  9. 31:41Identical binary expressions
  10. 32:47Missing return values
  11. 34:36Identical branches errors
  12. 35:18Destructors never throw
  13. 37:25Single-iteration loops
  14. 38:07Real-world bug examples
  15. 43:08Modern C++ mitigation
  16. 45:17Static analysis limits
  17. 47:45Intent with annotations
  18. 48:27Reference lifetime issues
  19. 50:16Iterator invalidation
  20. 52:47Race conditions safety
  21. 54:34Dynamic analysis sanitizers
  22. 56:18C++ education improvement
  23. 57:20Compiler analyzer best practices
  24. 57:43Q&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.