svn commit: r245036 - head/sys/kern

Mateusz Guzik mjguzik at gmail.com
Fri Jan 4 11:34:11 UTC 2013


On Fri, Jan 04, 2013 at 11:11:13AM +0000, David Xu wrote:
> Author: davidxu
> Date: Fri Jan  4 11:11:12 2013
> New Revision: 245036
> URL: http://svnweb.freebsd.org/changeset/base/245036
> 
> Log:
>   Revert revision 244760 because strncpy pads trailing space with zero,
>   this prevents kernel data from being leaked.
>   

I think it would be better to teach strlcpy to zero-pad as well.

-- 
Mateusz Guzik <mjguzik gmail.com>


More information about the svn-src-all mailing list