From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1211) id E0FED3858D33; Sat, 8 Apr 2023 20:54:09 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E0FED3858D33 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1680987249; bh=TblumPBaF/zwhL5MReQOfXqIFMwYyKzuMc964/IHZLI=; h=From:To:Subject:Date:From; b=qawXO41FUVYpaKczV5OGVanm9/PGb0n/OIZefgHEiPZeFdYLWD5lvbSNolXMV6cfs UifP36kWeAdpM/CxP9Z1gA85YWM+X6wesgcUSudro+hr8k6o7ao1hdHebQVOlP9LgJ fQKECJEPYg5ai0NGVfO7dq/CmjXlem7MFjSKYqi4= MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="utf-8" From: Paul Eggert To: glibc-cvs@sourceware.org Subject: [glibc] manual: update AddressSanitizer discussion X-Act-Checkin: glibc X-Git-Author: Paul Eggert X-Git-Refname: refs/heads/master X-Git-Oldrev: f173e27272e6e37cab016f9ef3f90d3e1189329f X-Git-Newrev: 54ae6d81c94364c1e13a5b8baef52b9e3475fedd Message-Id: <20230408205409.E0FED3858D33@sourceware.org> Date: Sat, 8 Apr 2023 20:54:09 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=54ae6d81c94364c1e13a5b8baef52b9e3475fedd commit 54ae6d81c94364c1e13a5b8baef52b9e3475fedd Author: Paul Eggert Date: Sat Apr 8 13:51:26 2023 -0700 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. Diff: --- manual/string.texi | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/manual/string.texi b/manual/string.texi index 57b804c1df..ad57265274 100644 --- a/manual/string.texi +++ b/manual/string.texi @@ -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.