Messages in this thread |  | | | Date | Thu, 15 Jun 2006 13:02:30 +0100 | | From | Al Viro <> | | Subject | Re: [PATCH] affs_fill_super() %s abuses |
| |
On Thu, Jun 15, 2006 at 01:56:59PM +0200, Andreas Schwab wrote: > Al Viro <viro@ftp.linux.org.uk> 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@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
|  |