Subject: Re: CVS commit: src/sys/net
To: YAMAMOTO Takashi <yamt@mwd.biglobe.ne.jp>
From: Christos Zoulas <christos@zoulas.com>
List: source-changes
Date: 10/27/2006 11:02:05
On Oct 27, 8:21pm, yamt@mwd.biglobe.ne.jp (YAMAMOTO Takashi) wrote:
-- Subject: Re: CVS commit: src/sys/net
| > Module Name: src
| > Committed By: christos
| > Date: Sun Oct 22 18:24:02 UTC 2006
| >
| > Modified Files:
| > src/sys/net: if.c
| >
| > Log Message:
| > use strlcpy instead of strncpy or bcopy to copy the interface name.
| >
| >
| > To generate a diff of this commit:
| > cvs rdiff -r1.171 -r1.172 src/sys/net/if.c
|
| doesn't it expose some kernel stack garbage to userland?
Yes, I should change it to strncpy in both cases.
christos