[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20150119.194537.2076072305947176887.davem@davemloft.net>
Date: Mon, 19 Jan 2015 19:45:37 -0500 (EST)
From: David Miller <davem@...emloft.net>
To: dan.carpenter@...cle.com
Cc: jdmason@...zu.us, netdev@...r.kernel.org,
kernel-janitors@...r.kernel.org
Subject: Re: [patch] s2io: use snprintf() as a safety feature
From: Dan Carpenter <dan.carpenter@...cle.com>
Date: Mon, 19 Jan 2015 22:34:51 +0300
> "sp->desc[i]" has 25 characters. "dev->name" has 15 characters. If we
> used all 15 characters then the sprintf() would overflow.
>
> I changed the "sprintf(sp->name, "%s Neterion %s"" to snprintf(), as
> well, even though it can't overflow just to be consistent.
>
> Signed-off-by: Dan Carpenter <dan.carpenter@...cle.com>
Applied, thanks Dan.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists