~/talk

Safer C++ with MISRA-C++ 2023

Talkat NDC TechTown 2023 · 2023-09-18..09-21· [security]
slides:none on file

MISRA C++:2023 gives concrete rules for C++17-era code: mandatory static-analysis checks, sanitizer use, and unit tests; it limits function calls in range-for to avoid temporary-lifetime dangling (workaround until C++23 fixes it); it prescribes signatures for copy/move and ref-qualifies accessors to stop dangling references; it recommends strong types and offers a safe integers approach after Monte Carlo showing integer multiplication often overflows (~7 nines); use the provided bitfield helper instead of native bitfields.

AI-written summary · about

  1. 0:00Safer C++ with MISRA-C++
  2. 1:29Personal journey with MISRA-C++
  3. 4:41C++ code safety and vulnerabilities
  4. 11:47MISRA-C++ purpose and history
  5. 13:12MISRA-C++ 2023 and C++ standard
  6. 17:52MISRA rules and categories
  7. 22:12Safer C++ features
  8. 28:56C++ type system limits
  9. 32:30Integer overflow risks
  10. 37:56Strong types and conversions
  11. 43:20Casts as design errors
  12. 47:32Bit fields, unions and hardware
  13. 50:21Class design and encapsulation
  14. 52:07Ref-qualifying member functions
  15. 54:32Special member functions misuse
  16. 58:02Value types and dangling references
  17. 1:00:10MISRA-C++ future and advice
~/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.