mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Geert Uytterhoeven <geert@linux-m68k.org>
To: xfs-masters@oss.sgi.com
Cc: Linux Kernel Development <linux-kernel@vger.kernel.org>
Subject: fs/xfs/xfs_mount.c:1483: warning: array subscript is above array bounds
Date: Tue, 5 May 2009 10:05:05 +0200 (CEST)	[thread overview]
Message-ID: <Pine.LNX.4.64.0905051001260.4192@anakin> (raw)


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

             reply	other threads:[~2009-05-05  8:05 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-05-05  8:05 Geert Uytterhoeven [this message]
2009-05-05  8:23 ` [xfs-masters] " Christoph Hellwig

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Pine.LNX.4.64.0905051001260.4192@anakin \
    --to=geert@linux-m68k.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=xfs-masters@oss.sgi.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®