From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 5C69D3858434; Sat, 8 Apr 2023 21:37:37 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 5C69D3858434 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1680989857; bh=mi+owZ7oxpk2vBuNiQyR68pvrz53u/AvDImhmUsqJ8E=; h=From:To:Subject:Date:In-Reply-To:References:From; b=ciOl22kc9EtzsKCBAdYfNHEv2Mp3JJw5tTLqlIunCm/OjKi8YFzIoqFfvtADBqL7I W+EzF4YtCPUL99iguwL/s0zB8MBH/vraFe4iIWmWqOytSoDY1YwxB7f5kO45E4G9Qn gT692EPmpTZO6TI3zDAWgOaFs5/bhIk8VoehM3Ng= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/109449] false positive stringop-overflow Date: Sat, 08 Apr 2023 21:37:37 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 12.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=3D109449 --- Comment #1 from Andrew Pinski --- The trunk provides extra information: : In function 'void func()': :51:47: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=3D] 51 | tdp[(2 * i + 1) * DSIZEY + 2 * j] =3D tpm; // 1. warnin= g here | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~ :16:9: note: at offset 80 into destination object 'drlg' of size 80 16 | DrlgMem drlg; | ^~~~ :58:51: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=3D] 58 | tdp[(2 * i + 1) * DSIZEY + 2 * j + 1] =3D tpm; // 2. wa= rning here | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~ :16:9: note: at offset [81, 6399] into destination object 'drlg' of size 80 16 | DrlgMem drlg; | ^~~~=