public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/109290] New: warning: array subscript -50 is outside array bounds of ‘struct kobject[36028797018963967]’
@ 2023-03-27  7:41 ubizjak at gmail dot com
  2023-03-27  7:45 ` [Bug c/109290] " ubizjak at gmail dot com
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: ubizjak at gmail dot com @ 2023-03-27  7:41 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109290

            Bug ID: 109290
           Summary: warning: array subscript -50 is outside array bounds
                    of ‘struct kobject[36028797018963967]’
           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 ‘btrfs_show_u64’,
    inlined from ‘btrfs_space_info_show_flags’ at fs/btrfs/sysfs.c:867:1:
fs/btrfs/sysfs.c:637:13: error: array subscript -50 is outside array bounds of
‘struct kobject[36028797018963967]’ [-Werror=array-bounds=]
  637 |         val = *value_ptr;
      |         ~~~~^~~~~~~~~~~~
In function ‘btrfs_show_u64’,
    inlined from ‘btrfs_space_info_show_total_bytes’ at fs/btrfs/sysfs.c:868:1:
fs/btrfs/sysfs.c:637:13: error: array subscript -64 is outside array bounds of
‘struct kobject[36028797018963967]’ [-Werror=array-bounds=]
  637 |         val = *value_ptr;
      |         ~~~~^~~~~~~~~~~~
...

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2023-12-17  4:49 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-27  7:41 [Bug c/109290] New: warning: array subscript -50 is outside array bounds of ‘struct kobject[36028797018963967]’ ubizjak at gmail dot com
2023-03-27  7:45 ` [Bug c/109290] " ubizjak at gmail dot com
2023-03-27  9:02 ` [Bug tree-optimization/109290] " ubizjak at gmail dot com
2023-03-28 11:53 ` rguenth at gcc dot gnu.org
2023-12-17  4:49 ` lavr at ncbi dot nlm.nih.gov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).