~/talk

Towards Safety and Security in C++26

Talkat Meeting C++ 2025 · 2025-11-06..11-08· [security]
slides:none on file

C++26 will add library hardening (P3471) that inserts boundary checks with an optional quick-enforcement mode that can trap/stop execution (implementations already show pointer-tombstone behavior). It will introduce contracts (P2900) with pre/post predicates using observe/enforce/ignore semantics and some compile-time checking, and expand constant evaluation (allowing exceptions in constexpr) while requiring compilers to diagnose and refuse undefined behavior during compilation. Proposals for core safety profiles and a Rust-like borrow checker (Circle prototype) are still being discussed but are not expected for C++26.

AI-written summary · about

  1. 0:00C++ safety and security intro
  2. 9:12Undefined behavior examples
  3. 16:58UB enables optimizations
  4. 21:28Constant evaluation vs UB
  5. 26:45Hardened stdlib in C++26
  6. 34:34Contracts for functional safety
  7. 40:43Observable checkpoints in contracts
  8. 45:35Core safety profiles
  9. 53:04Summary of C++ safety features
  10. 55:58Q&A on borrow checker
~/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.