Security in C++ - Hardening Techniques From the Trenches - Louis Dionne - C++Now 2024 @CppNow
Security in C++ - Hardening Techniques From the Trenches - Louis Dionne - C++Now 2024  @CppNow
Uploaded October 2024 | Updated December 2026, 2 hours ago
cppnow.org
---

Security in C++ - Hardening techniques from the trenches - Louis Dionne - C++Now 2024
---

C++ has gotten a lot of attention lately for being a memory-unsafe language. However, less well-known is the existence of mitigation techniques for certain spatial and temporal memory safety issues. While imperfect, these techniques can help greatly improve the security of existing C++ applications often without requiring any code changes.

This talk will go over two concrete 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. 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.
---

Slides: github.com/boostcon/cppnow_presentations_2024/blob/main/Presentations/Hardening_Techniques_from_the_Trenches.pdf


---

Louis Dionne

I work at Apple where I lead the development of libc++, the Standard Library under the LLVM project and used by the Clang compiler.
---

C++Now 2025 - 28th April - 2nd May
C++Now is an annual onsite international C++ programming and coding conference held in Aspen, Colarado. For all C++ developers, C++ software engineers and those involved with the C++ language, CppNow provides an indepth and technical content provided by the best and brightest C++ experts of the C++ world.
Annual CppNow Conference - cppnow.org
linkedin.com/company/cppnow
twitter.com/cppnow
facebook.com/CppNow
reddit.com/r/CppNow
https://mastodon.social/@cppnow
think-cell develops one of the world’s leading PowerPoint applications, with C++ at the core of everything we build, from layout algorithms to deep integration with Microsoft Office. Interested in working on challenging C++ problems with real-world impact? Explore our open roles: think-cell.com/en/career/tech
---

Videos Filmed & Edited By Bash Films: bashfilms.com
YouTube Channel Managed & Optimized By Digital Medium Ltd: events.digital-medium.co.uk
---

#boost #cpp #cppprogramming #cplusplusprogramming #softwaredevelopment
Security in C++ - Hardening Techniques From the Trenches - Louis Dionne - C++Now 2024Reintroduction to Generic Programming for C++ Engineers - Nick DeMarco - C++Now 2024import CMake; // Mastering C++ Modules - Marching Towards Standard C++ Dependency ManagementLightning Talk: Run-time Template Parameters - Sort Of - Braden Ganetsky - C++Now 2026Algorithms for Trees - Foldable, Applicative, Traversable - Steve Downey - C++Now 2026Growing Your Toolkit From Refactoring to Automated Migrations - Matt Kulukundis - C++Now 2025Fast Conversion From Cpp Floating Point Numbers - Cassio Neri - C++Now 2024Implementing the C++ Standard Library Proposal for any_view - Patrick Roberts - C++Now 2025Unlocking Modern CPU Power - Next-Gen C++ Optimization Techniques - Fedor G Pikus - C++Now 2024Keynote: Employing Senders & Receivers to Tame Concurrency in C++ Embedded Systems - Michael CaisseBalancing the Books: Access Right Tracking for C++ - Lisa Lippincott - C++Now 2025Lightning Talk: Reproducible C++ Floating-Point Reductions in CUB - Shreyas Atre - C++Now 2025
CppNow |

Security in C++ - Hardening Techniques From the Trenches - Louis Dionne - C++Now 2024

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER