[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20130118.143522.943294381617599481.davem@davemloft.net>
Date: Fri, 18 Jan 2013 14:35:22 -0500 (EST)
From: David Miller <davem@...emloft.net>
To: dan.carpenter@...cle.com
Cc: benve@...co.com, roprabhu@...co.com, neepatel@...co.com,
nistrive@...co.com, netdev@...r.kernel.org,
kernel-janitors@...r.kernel.org
Subject: Re: [patch] enic: change sprintf() to snprintf()
From: Dan Carpenter <dan.carpenter@...cle.com>
Date: Fri, 18 Jan 2013 10:46:18 +0300
> These are copying data into 16 char arrays. They all specify that the
> first string can't be more than 11 characters but once you add on the
> "-rx-" and the NUL character there isn't space for the %d.
>
> The first string is probably never going to be 11 characters, but if it
> is then let's truncate the string instead of corrupting memory.
>
> Signed-off-by: Dan Carpenter <dan.carpenter@...cle.com>
Applied to net-next, thanks.
--
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