From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id E1D49385843B; Wed, 27 Mar 2024 06:24:01 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E1D49385843B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1711520641; bh=JAhGm1+mNnj0FFdWT3vuCxubpYSbOStuEnbJxbjSrKg=; h=From:To:Subject:Date:In-Reply-To:References:From; b=q8kkBB06R1kNu/RnKZxcEmPzBRqBbwByGl8J13y5E4fbNZYu3CLOR7XmzAJAmRIr6 DolI5dwoTk5zrBvH+MrbxghThn63Xlhl+TTE2QPoQHQO3hHHGaT3O6IkjftUYJ/B57 jLPLM2ObcAaMGGF1slPRJO8Bwl0DUoJPF5CQjeZY= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug sanitizer/114494] false-positive with -O2 -Wstringop-overflow=2 -fsanitize=address Date: Wed, 27 Mar 2024 06:24:01 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: sanitizer X-Bugzilla-Version: 13.2.1 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D114494 --- Comment #1 from Andrew Pinski --- Please note this part of the documentation: Note that sanitizers tend to increase the rate of false positive warnings, = most notably those around -Wmaybe-uninitialized. We recommend against combining -Werror and [the use of] sanitizers. https://gcc.gnu.org/onlinedocs/gcc-13.2.0/gcc/Instrumentation-Options.html#= index-fsanitize_003daddress=