Regarding: overlapping strcpy in imake.c
Email: [EMAIL PROTECTED]
------------------------------------------------------------
XFree86 Version: XFree86 Version 4.3.0

OS: FreeBSD -current

Area: imake

Server: not server related

Description:

xc/config/imake/imake.c line 1841:

            strcpy(pend+1, pend+5);

is not a legal function call.  strcpy does not reliably handle overlapping arguments.  
See http://www.opengroup.org/onlinepubs/007904975/functions/strcpy.html.  Fix:

            memmove(pend+1, pend+5, strlen(pend+5));


Repeat By:

Build imake on a system that implements strcpy by copying backwards and watch it die 
on a makefile with XCOMM comments



_______________________________________________
XFree86 mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/xfree86

Reply via email to