Excited to share our latest post on memory safety! We're tackling spatial safety in our massive C++ codebase by hardening libc++ *by default*. It adds bounds checks to things like std::vector, preventing a fair bit of out-of-bounds vulnerabilities: security.googleblog.com/2024…

Nov 15, 2024 · 6:57 PM UTC

2
50
5
250
This improves spatial memory safety across Google's services, including performance-critical components of Search, Gmail, Drive, YouTube, and Maps.  We've already seen it disrupt a red team exercise, reduce segfaults by 30%, and improve code correctness.
2
5
43
The best part? It's incredibly cost-effective, with an average performance overhead of just 0.30%.  So there's really no reason not to do it if you're running C++ code :)
1
2
2
26
Replying to @ayper
Does OOB access yield an abort or an unwinding exception?
1
5
Oops, I missed this. OOB accesses terminate the program immediately. See libcxx.llvm.org/Hardening.ht…
1