[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <32347.1538665500@warthog.procyon.org.uk>
Date: Thu, 04 Oct 2018 16:05:00 +0100
From: David Howells <dhowells@...hat.com>
To: Amir Goldstein <amir73il@...il.com>
Cc: dhowells@...hat.com, Miklos Szeredi <miklos@...redi.hu>,
linux-unionfs@...r.kernel.org, linux-fsdevel@...r.kernel.org,
linux-kernel@...r.kernel.org, Jeff Layton <jlayton@...nel.org>,
Jan Harkes <jaharkes@...cmu.edu>, Mark Fasheh <mark@...heh.com>
Subject: Re: [PATCH] fs: fix access beyond unterminated strings in prints
Amir Goldstein <amir73il@...il.com> wrote:
> @@ -47,7 +47,7 @@ static struct dentry *coda_lookup(struct inode *dir, struct dentry *entry, unsig
> int type = 0;
>
> if (length > CODA_MAXNAMLEN) {
> - pr_err("name too long: lookup, %s (%*s)\n",
> + pr_err("name too long: lookup, %s (%.*s)\n",
Use %pd instead?
David
Powered by blists - more mailing lists