From: Greg KH Date: Thu, 26 Feb 2004 20:56:00 +0000 Subject: Re: [PATCH] udev - safer string handling all over the place Message-Id: <20040226205600.GB13134@kroah.com> List-Id: References: <20040224225052.GA24733@vrfy.org> In-Reply-To: <20040224225052.GA24733@vrfy.org> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org On Wed, Feb 25, 2004 at 12:10:06AM +0100, Kay Sievers wrote: > On Tue, Feb 24, 2004 at 11:50:52PM +0100, Kay Sievers wrote: > > Here is the first step towards a safer string handling. > > More will follow, but for now only the easy ones :) > > > > Thanks to all who pointed this out. strncat() isn't a nice function. We > > all should remember that the destination string is not terminated if the > > given lenght is shorter than the strlen of the source string. > > > > And shame on the various implementers of strfieldcat() I found in the > > unapplied patches on this list, it's not really better than strncpy() > > and hides the real problem. > > Hmm, bk didn't checked in one file, maybe I edited it again as root. > Nevermind, here is the more complete version. Applied, thanks. greg k-h ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id56&alloc_id438&op=click _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net Linux-hotplug-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel