summaryrefslogblamecommitdiff
path: root/system/binutils/mips-illegal-memcpy.patch
blob: d76af178a7b536ac44f95fe5aa3fb27e63201d83 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11










                                                                                   
--- binutils-2.29/gas/config/tc-mips.c.old	2017-07-04 03:43:20.000000000 -0500
+++ binutils-2.29/gas/config/tc-mips.c	2017-08-25 17:21:51.449460074 -0500
@@ -13956,7 +13956,7 @@
 	suffix = 0;
       if (suffix)
 	{
-	  memcpy (name + opend - 2, name + opend, length - opend + 1);
+	  memmove (name + opend - 2, name + opend, length - opend + 1);
 	  insn = (struct mips_opcode *) hash_find (hash, name);
 	  if (insn)
 	    {