Skip to content
Snippets Groups Projects
Commit 5c5eaa83 authored by Richard Smith's avatar Richard Smith
Browse files

Document the existence of -fsanitize=bounds.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@169207 91177308-0d34-0410-b5e6-96231b3b80d8
parent 60ef8b72
No related branches found
No related tags found
No related merge requests found
...@@ -896,8 +896,8 @@ main checks are: ...@@ -896,8 +896,8 @@ main checks are:
<li id="opt_fsanitize_undefined"><tt>-fsanitize=undefined</tt>: <li id="opt_fsanitize_undefined"><tt>-fsanitize=undefined</tt>:
Fast and compatible undefined behavior checker. Enables the undefined behavior Fast and compatible undefined behavior checker. Enables the undefined behavior
checks that have small runtime cost and no impact on address space layout checks that have small runtime cost and no impact on address space layout
or ABI. This includes all of the checks listed below other than unsigned or ABI. This includes all of the checks listed below other than
integer overflow.</li> <tt>unsigned-integer-overflow</tt> and <tt>bounds</tt>.</li>
</ul> </ul>
The following more fine-grained checks are also available: The following more fine-grained checks are also available:
...@@ -905,6 +905,9 @@ The following more fine-grained checks are also available: ...@@ -905,6 +905,9 @@ The following more fine-grained checks are also available:
<ul> <ul>
<li id="opt_fsanitize_alignment"><tt>-fsanitize=alignment</tt>: <li id="opt_fsanitize_alignment"><tt>-fsanitize=alignment</tt>:
Use of a misaligned pointer or creation of a misaligned reference.</li> Use of a misaligned pointer or creation of a misaligned reference.</li>
<li id="opt_fsanitize_bounds"><tt>-fsanitize=bounds</tt>:
Out of bounds array indexing, in cases where the array bound can be
statically determined.</li>
<li id="opt_fsanitize_float-cast-overflow"><tt>-fsanitize=float-cast-overflow</tt>: <li id="opt_fsanitize_float-cast-overflow"><tt>-fsanitize=float-cast-overflow</tt>:
Conversion to, from, or between floating-point types which would overflow Conversion to, from, or between floating-point types which would overflow
the destination.</li> the destination.</li>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment