lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
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

Powered by Openwall GNU/*/Linux Powered by OpenVZ