[BusyBox-cvs] svn commit: trunk/busybox/shell

pgf at busybox.net pgf at busybox.net
Tue Jul 19 20:41:06 UTC 2005


Author: pgf
Date: 2005-07-19 14:41:06 -0600 (Tue, 19 Jul 2005)
New Revision: 10861

Log:
applying:
0000054: Tab completing filenames in ash causes SEGV
	Simple tab completion operations cause busybox (ash) to
	access illegal addresses.




Modified:
   trunk/busybox/shell/cmdedit.c


Changeset:
Modified: trunk/busybox/shell/cmdedit.c
===================================================================
--- trunk/busybox/shell/cmdedit.c	2005-07-19 20:37:15 UTC (rev 10860)
+++ trunk/busybox/shell/cmdedit.c	2005-07-19 20:41:06 UTC (rev 10861)
@@ -782,8 +782,8 @@
 #define QUOT    (UCHAR_MAX+1)
 
 #define collapse_pos(is, in) { \
-	memcpy(int_buf+(is), int_buf+(in), (BUFSIZ+1-(is)-(in))*sizeof(int)); \
-	memcpy(pos_buf+(is), pos_buf+(in), (BUFSIZ+1-(is)-(in))*sizeof(int)); }
+	memmove(int_buf+(is), int_buf+(in), (BUFSIZ+1-(is)-(in))*sizeof(int)); \
+	memmove(pos_buf+(is), pos_buf+(in), (BUFSIZ+1-(is)-(in))*sizeof(int)); }
 
 static int find_match(char *matchBuf, int *len_with_quotes)
 {




More information about the busybox-cvs mailing list