[clang] [BoundsSafety] Initial documentation for -fbounds-safety (PR #70749)

Aaron Ballman via cfe-commits cfe-commits at lists.llvm.org
Wed Nov 29 06:49:45 PST 2023


================
@@ -0,0 +1,362 @@
+==================================================
+``-fbounds-safety``: Enforcing bounds safety for C
+==================================================
+
+.. contents::
+   :local:
+
+Overview
+========
+
+``-fbounds-safety`` is a C extension to enforce bounds safety to prevent out-of-bounds (OOB) memory accesses, which remain a major source of security vulnerabilities in C. ``-fbounds-safety`` aims to eliminate this class of bugs by turning OOB accesses into deterministic traps.
----------------
AaronBallman wrote:

Can you re-flow the document to the usual 80-col limits? (It's fine for lines with a link to be longer, but it's a bit easier on some folks' editors to have the shorter lines in general.)

https://github.com/llvm/llvm-project/pull/70749


More information about the cfe-commits mailing list