]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
manual: update AddressSanitizer discussion
authorPaul Eggert <eggert@cs.ucla.edu>
Sat, 8 Apr 2023 20:51:26 +0000 (13:51 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sat, 8 Apr 2023 20:53:28 +0000 (13:53 -0700)
* manual/string.texi (Truncating Strings): Update obsolescent
reference and use the more-generic term “AddressSanitizer”.
Mention fortification, too.  -fcheck-pointer-bounds is no longer
supported.

manual/string.texi

index 57b804c1df874e71386a24b09d303278fae00d8e..ad572652748450e418fa5bb4cb6e2a0f94e0604e 100644 (file)
@@ -1088,11 +1088,10 @@ name, a truncated name can identify the wrong user.
 
 Although some buffer overruns can be prevented by manually replacing
 calls to copying functions with calls to truncation functions, there
-are often easier and safer automatic techniques that cause buffer
-overruns to reliably terminate a program, such as GCC's
-@option{-fcheck-pointer-bounds} and @option{-fsanitize=address}
-options.  @xref{Debugging Options,, Options for Debugging Your Program
-or GCC, gcc, Using GCC}.  Because truncation functions can mask
+are often easier and safer automatic techniques, such as fortification
+(@pxref{Source Fortification}) and AddressSanitizer
+(@pxref{Instrumentation Options,, Program Instrumentation Options, gcc, Using GCC}).
+Because truncation functions can mask
 application bugs that would otherwise be caught by the automatic
 techniques, these functions should be used only when the application's
 underlying logic requires truncation.