Skip to content

Commit 8ec5fac

Browse files
dlucothomasnyman
authored andcommitted
Fix TSan references.
Signed-off-by: David Luco <[email protected]>
1 parent d163b0d commit 8ec5fac

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

docs/Compiler-Hardening-Guides/Compiler-Options-Hardening-Guide-for-C-and-C++.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1220,7 +1220,6 @@ Table 4: Sanitizer options in GCC and Clang.
12201220
| Compiler Flag | Supported since | Description |
12211221
|:---------------------- |:---------------------:|:--------------------------------------------------------------------------- |
12221222
| `-fsanitize=address` | GCC 4.8.0<br/>Clang 3.1.0 | Enables AddressSanitizer to detect memory errors at run-time |
1223-
| `-fsanitize=thread` | GCC 4.8.0<br/>Clang 3.2.0 | Enables ThreadSanitizer to detect data race bugs at run time |
12241223
12251224
AddressSanitizer (ASan) is a memory error detector that can identify memory defects that involve:
12261225
@@ -1301,7 +1300,7 @@ LSan cannot be used simultaneously with AddressSanitizer (ASan) or ThreadSanitiz
13011300
13021301
UndefinedBehaviorSanitizer (UBSan) is a detector of non-portable or erroneous program constructs which cause behavior which is not clearly defined in the ISO C standard. UBSan provides a large number of sub-options to enable / disable individual checks for different classes of undefined behavior. Consult the GCC[^gcc-instrumentation] and Clang[^clang-ubsan] documentation respectively for up-to-date information on supported sub-options.
13031302
1304-
To enable UBSan add `-fsanitize=undefined` to the compiler flags (`CFLAGS` for C, `CXXFLAGS` for C++) and linker flags (`LDFLAGS`) together with any desired sub-options. Consider combining TSan with the following compiler flags:
1303+
To enable UBSan add `-fsanitize=undefined` to the compiler flags (`CFLAGS` for C, `CXXFLAGS` for C++) and linker flags (`LDFLAGS`) together with any desired sub-options. Consider combining UBSan with the following compiler flags:
13051304
13061305
- `-O1` (required or higher for reasonable performance)
13071306
- `-g` (to display source file names and line numbers in the produced warning messages)

0 commit comments

Comments
 (0)