[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20100826.141231.35022316.davem@davemloft.net>
Date: Thu, 26 Aug 2010 14:12:31 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: xiaosuo@...il.com
Cc: netdev@...r.kernel.org
Subject: Re: [PATCH] net: use scnprintf() to avoid potential buffer overflow
From: Changli Gao <xiaosuo@...il.com>
Date: Wed, 25 Aug 2010 07:32:58 +0800
> strlcpy() returns the total length of the string they tried to create, so
> we should not use its return value without any check. scnprintf() returns
> the number of characters written into @buf not including the trailing '\0',
> so use it instead here.
>
> Signed-off-by: Changli Gao <xiaosuo@...il.com>
Applied.
--
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