From mboxrd@z Thu Jan 1 00:00:00 1970 From: Greg KH Date: Thu, 26 Feb 2004 20:56:18 +0000 Subject: Re: [PATCH] udev - safer string handling - part two Message-Id: <20040226205618.GD13134@kroah.com> List-Id: References: <20040226003100.GA27025@vrfy.org> In-Reply-To: <20040226003100.GA27025@vrfy.org> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org On Thu, Feb 26, 2004 at 01:31:00AM +0100, Kay Sievers wrote: > As promised, here is the next round. We provide in addition to the > already used macros: > > strfieldcpy(to, from) > strfieldcat(to, from) > > the corresponding friends, if the size of the target is not known and > must be provided by the caller: > > strnfieldcpy(to, from, maxsize) > strnfieldcat(to, from, maxsize) > > and switch nearly all possibly unsafe users of strcat(), strncat(), > strcpy() and strncpy() to these safer macros. > > The last known remaining issue seems the use of sprintf() and > snprintf(). I will take on it later today or tomorrow. 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