From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Christoph Egger" Subject: [PATCH 0/3] Use string bound functions (take #2) Date: Mon, 29 Jan 2007 15:22:43 +0100 Message-ID: <200701291522.43504.Christoph.Egger@amd.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org Hi! I killed safe_strcpy() and almost all users from strcpy() and strncpy(). The remaining users are acm and acpi. When this is done, strcpy() and strncpy() can be removed. patch 1/3: Changes arch-independent code. Warning: Since tools re-uses libelf, this breaks the tool-building of the Linux distris, whose glibc have NO strlcpy/strlcat. Solaris and *BSD are fine. They have these functions. Keir, it's up to you if you apply this or if you wait until a fix for the tools is available. patch 2/3: Changes for x86 platform. patch 3/3: Changes for ppc/ia64 platforms. Warning: Due to lack of hw, these two patches are NOT even compile-tested. IA64 and PPC maintainers, please verify.