[6242] in bugtraq

home help back first fref pref prev next nref lref last post

Re: strcpy versus strncpy

daemon@ATHENA.MIT.EDU (Steve Bellovin)
Thu Mar 5 14:06:48 1998

Date: 	Thu, 5 Mar 1998 12:07:18 -0500
Reply-To: Steve Bellovin <smb@RESEARCH.ATT.COM>
From: Steve Bellovin <smb@RESEARCH.ATT.COM>
X-To:         der Mouse <mouse@RODENTS.MONTREAL.QC.CA>
To: BUGTRAQ@NETSPACE.ORG

Classic UNIX -- i.e., 7th Edition and the like, before Berkeley --
had no limit on path length in the kernel.  Assorted applications
often did have fixed-length buffers, of course, but not the kernel.
A path name was fetched one byte at a time, and analyzed one
component at a time.  (For fun, I just went back and reviewed the
code in my ancient copy of the Lions commentary on the 6th Edition
kernel...)

home help back first fref pref prev next nref lref last post