changeset 1482:a2424745b6dc

package binutils: import upstream bugfix - memmove to copy overlap memory https://bugzilla.redhat.com/show_bug.cgi?id=643305 http://sourceware.org/bugzilla/show_bug.cgi?id=11456
author Tony Theodore <tonyt@logyst.com>
date Tue, 07 Dec 2010 21:43:54 +1100
parents 548268d4c32d
children 536e37b909d9
files src/binutils-1-gas-memmove.patch
diffstat 1 files changed, 20 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/binutils-1-gas-memmove.patch	Tue Dec 07 21:43:54 2010 +1100
@@ -0,0 +1,20 @@
+This file is part of mingw-cross-env.
+See doc/index.html for further information.
+
+This patch has been taken from:
+http://sourceware.org/bugzilla/show_bug.cgi?id=11456
+
+diff -u -r1.22 -r1.23
+--- a/gas/input-scrub.c	2009/09/11 15:27:33	1.22
++++ b/gas/input-scrub.c	2010/03/30 23:20:25	1.23
+@@ -343,8 +343,8 @@
+ 
+   if (partial_size)
+     {
+-      memcpy (buffer_start + BEFORE_SIZE, partial_where,
+-	      (unsigned int) partial_size);
++      memmove (buffer_start + BEFORE_SIZE, partial_where,
++	       (unsigned int) partial_size);
+       memcpy (buffer_start + BEFORE_SIZE, save_source, AFTER_SIZE);
+     }
+   limit = input_file_give_next_buffer (buffer_start
\ No newline at end of file