Re: [PATCH] affs_fill_super() %s abuses

From: Al Viro
Date: Thu Jun 15 2006 - 08:01:33 EST


On Thu, Jun 15, 2006 at 01:56:59PM +0200, Andreas Schwab wrote:
> Al Viro <viro@xxxxxxxxxxxxxxxx> writes:
>
> > %s is valid only on NUL-terminated arrays, damnit!
>
> Unless it specifies an approriate precision.

... and that precision does not exceed the size of array. Here we have
AFFS_ROOT_TAIL(sb, root_bh)->disk_name[0] as precision and
AFFS_ROOT_TAIL(sb, root_bh)->disk_name + 1 as pointer. Which is closer
to the end of object than 256 bytes.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/