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:	Fri, 08 Mar 2013 14:13:23 +0800
From:	Chen Gang <gang.chen@...anux.com>
To:	David Miller <davem@...emloft.net>
CC:	bhutchings@...arflare.com, David.Laight@...LAB.COM,
	venkat.x.venkatsubra@...cle.com, rds-devel@....oracle.com,
	netdev@...r.kernel.org
Subject: Re: [PATCH] net/rds: zero last byte for strncpy

于 2013年03月08日 13:36, David Miller 写道:
> From: Chen Gang <gang.chen@...anux.com>
> Date: Fri, 08 Mar 2013 11:19:32 +0800
> 
>>
>>   for NUL terminated string, need be always sure '\0' in the end.
>>
>> additional info:
>>   strncpy will pads with zeroes to the end of the given buffer.
>>   should initialise every bit of memory that is going to be copied to userland
>>
>>
>> Signed-off-by: Chen Gang <gang.chen@...anux.com>
>> Signed-off-by: Ben Hutchings <bhutchings@...arflare.com>
> 
> Applied.
> 
> 

  thanks.

-- 
Chen Gang

Asianux Corporation
--
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