Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: CVS commit: src/sys/net



On Oct 27,  8:21pm, yamt%mwd.biglobe.ne.jp@localhost (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



Home | Main Index | Thread Index | Old Index