From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id BFCC93858CDA; Mon, 27 Mar 2023 07:41:45 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org BFCC93858CDA DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1679902905; bh=hkLBDD5hdfsJA3zalzt65wSdxrV9oXPAup0iQePYseE=; h=From:To:Subject:Date:From; b=QLjM31gvAq3GPak28ckkAFlSzjhO/dzJwtGvd7cF4l+5O5y5aQ/tJPO15lSJF9e9f Zyy/YX8aecQK+gm/9y1mMWxkaaPpoimqc4QR3XykQKLVu+XUo4e+0iT+wK4PN1qQO0 dNMyqrxCwsdqg90jN40UxwxKP/4Zl23bV1lb/08U= From: "ubizjak at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: =?UTF-8?B?W0J1ZyBjLzEwOTI5MF0gTmV3OiB3YXJuaW5nOiBhcnJheSBzdWJz?= =?UTF-8?B?Y3JpcHQgLTUwIGlzIG91dHNpZGUgYXJyYXkgYm91bmRzIG9mIOKAmHN0cnVj?= =?UTF-8?B?dCBrb2JqZWN0WzM2MDI4Nzk3MDE4OTYzOTY3XeKAmQ==?= Date: Mon, 27 Mar 2023 07:41:45 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: 13.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: ubizjak at gmail dot com 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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: 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=3D109290 Bug ID: 109290 Summary: warning: array subscript -50 is outside array bounds of =E2=80=98struct kobject[36028797018963967]=E2=80=99 Product: gcc Version: 13.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: ubizjak at gmail dot com Target Milestone: --- Happens while compiling recent linux kernel. Several instances of ... in the same place: In function =E2=80=98btrfs_show_u64=E2=80=99, inlined from =E2=80=98btrfs_space_info_show_flags=E2=80=99 at fs/btrfs/= sysfs.c:867:1: fs/btrfs/sysfs.c:637:13: error: array subscript -50 is outside array bounds= of =E2=80=98struct kobject[36028797018963967]=E2=80=99 [-Werror=3Darray-bounds= =3D] 637 | val =3D *value_ptr; | ~~~~^~~~~~~~~~~~ In function =E2=80=98btrfs_show_u64=E2=80=99, inlined from =E2=80=98btrfs_space_info_show_total_bytes=E2=80=99 at fs/= btrfs/sysfs.c:868:1: fs/btrfs/sysfs.c:637:13: error: array subscript -64 is outside array bounds= of =E2=80=98struct kobject[36028797018963967]=E2=80=99 [-Werror=3Darray-bounds= =3D] 637 | val =3D *value_ptr; | ~~~~^~~~~~~~~~~~ ...=