xfs-masters
[Top] [All Lists]

fs/xfs/xfs_mount.c:1483: warning: array subscript is above array bounds

To: xfs-masters@xxxxxxxxxxx
Subject: fs/xfs/xfs_mount.c:1483: warning: array subscript is above array bounds
From: Geert Uytterhoeven <geert@xxxxxxxxxxxxxx>
Date: Tue, 5 May 2009 10:05:05 +0200 (CEST)
Cc: Linux Kernel Development <linux-kernel@xxxxxxxxxxxxxxx>
Sender: geert@xxxxxxxxxxxxxx
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@xxxxxxxxxxxxxx

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

<Prev in Thread] Current Thread [Next in Thread>