mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-21 20:40:05 +00:00
manual: update AddressSanitizer discussion
* 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.
This commit is contained in:
parent
f173e27272
commit
54ae6d81c9
@ -1088,11 +1088,10 @@ name, a truncated name can identify the wrong user.
|
|||||||
|
|
||||||
Although some buffer overruns can be prevented by manually replacing
|
Although some buffer overruns can be prevented by manually replacing
|
||||||
calls to copying functions with calls to truncation functions, there
|
calls to copying functions with calls to truncation functions, there
|
||||||
are often easier and safer automatic techniques that cause buffer
|
are often easier and safer automatic techniques, such as fortification
|
||||||
overruns to reliably terminate a program, such as GCC's
|
(@pxref{Source Fortification}) and AddressSanitizer
|
||||||
@option{-fcheck-pointer-bounds} and @option{-fsanitize=address}
|
(@pxref{Instrumentation Options,, Program Instrumentation Options, gcc, Using GCC}).
|
||||||
options. @xref{Debugging Options,, Options for Debugging Your Program
|
Because truncation functions can mask
|
||||||
or GCC, gcc, Using GCC}. Because truncation functions can mask
|
|
||||||
application bugs that would otherwise be caught by the automatic
|
application bugs that would otherwise be caught by the automatic
|
||||||
techniques, these functions should be used only when the application's
|
techniques, these functions should be used only when the application's
|
||||||
underlying logic requires truncation.
|
underlying logic requires truncation.
|
||||||
|
Loading…
Reference in New Issue
Block a user