Security in C++: Hardening techniques from the trenches - Louis Dionne & Konstantin Varlamov @MeetingCPP
Security in C++: Hardening techniques from the trenches - Louis Dionne & Konstantin Varlamov  @MeetingCPP
Uploaded February 2025 | Updated November 2026, 2 days ago
Security in C++: Hardening techniques from the trenches - Louis Dionne & Konstantin Varlamov - Meeting C++ 2024
Slides: slides.meetingcpp.com
Survey: survey.meetingcpp.com

This talk will go over two security mitigation techniques we implemented as extensions in the Clang and libc++ toolchain: Standard Library hardening and typed memory allocation. Standard Library hardening allows catching common cases of undefined behavior such as out-of-bounds memory accesses and turning them into guaranteed traps. Typed memory allocation allows passing compiler-inferred type information to the system allocator, which can then isolate memory allocations based on types so as to make it more difficult to put together a type confusion attack by exploiting a temporal memory safety issue.

We will discuss our experience adopting and enabling these mitigation techniques in production on large, performance and security critical code bases. Our experience shows that these techniques can help greatly improve the security of existing C++ applications often without requiring any code changes. We will also go over some of the evolutionary challenges we met along the way and how we resolved them. Finally, we will propose a path forward to make targeted changes to the C++ Standard that would allow these mitigation techniques to be first class citizens of the Standard.
Security in C++: Hardening techniques from the trenches - Louis Dionne & Konstantin VarlamovMaking a Game engine with Godot features using standard C++ - Raphaël TalaïaKeynotes at Meeting C++ 2026Using C++26 reflection to visualize padding bytes #codingInterview with Jan Wilczek about applying type erasurePeering forward: C++s next decade - Herb Sutter - Keynote Meeting C++ 2024C++ Trends: adoption to C++ standards - planning and doing itCasts in C++: To lie... and hopefully - to lie usefully - Patrice Roy - Meeting C++ 2025Are you hiring for C++? What Meeting C++ has to offer!Make move constructors noexcept or vectors will copy #cplusplusAn (In-) Complete Guide to C++ Object Lifetimes - Jonathan Müller - Meeting C++ 2024An Introduction to Swarm Intelligence Algorithms - Frances Buontempo - Meeting C++ 2024
Meeting Cpp |

Security in C++: Hardening techniques from the trenches - Louis Dionne & Konstantin Varlamov

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER