* fs/xfs/xfs_mount.c:1483: warning: array subscript is above array bounds
@ 2009-05-05 8:05 Geert Uytterhoeven
2009-05-05 8:23 ` [xfs-masters] " Christoph Hellwig
0 siblings, 1 reply; 2+ messages in thread
From: Geert Uytterhoeven @ 2009-05-05 8:05 UTC (permalink / raw)
To: xfs-masters; +Cc: Linux Kernel Development
http://kisskb.ellerman.id.au/kisskb/buildresult/407608/:
fs/xfs/xfs_mount.c:1483: warning: array subscript is above array bounds
xfs_mod_sb(xfs_trans_t *tp, __int64_t fields)
{
xfs_sb_field_t f;
...
first = xfs_sb_info[f].offset;
...
}
xfs_sb_field_t is an enum with 47 values.
xfs_sb_info[] has at least 47 entries.
Is this a bogus warning?
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [xfs-masters] fs/xfs/xfs_mount.c:1483: warning: array subscript is above array bounds
2009-05-05 8:05 fs/xfs/xfs_mount.c:1483: warning: array subscript is above array bounds Geert Uytterhoeven
@ 2009-05-05 8:23 ` Christoph Hellwig
0 siblings, 0 replies; 2+ messages in thread
From: Christoph Hellwig @ 2009-05-05 8:23 UTC (permalink / raw)
To: Geert Uytterhoeven; +Cc: xfs-masters, Linux Kernel Development
On Tue, May 05, 2009 at 10:05:05AM +0200, Geert Uytterhoeven wrote:
>
> http://kisskb.ellerman.id.au/kisskb/buildresult/407608/:
> fs/xfs/xfs_mount.c:1483: warning: array subscript is above array bounds
>
> xfs_mod_sb(xfs_trans_t *tp, __int64_t fields)
> {
> xfs_sb_field_t f;
>
> ...
> first = xfs_sb_info[f].offset;
> ...
> }
>
> xfs_sb_field_t is an enum with 47 values.
> xfs_sb_info[] has at least 47 entries.
That's the conclusion I came to. I also see similar bogus warnings in
a couple of other places in a full kernel build (not in xfs).
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-05-05 8:24 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-05-05 8:05 fs/xfs/xfs_mount.c:1483: warning: array subscript is above array bounds Geert Uytterhoeven
2009-05-05 8:23 ` [xfs-masters] " Christoph Hellwig
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 NNTP newsgroup(s).