diff options
author | Tony Theodore <tonyt@logyst.com> | 2010-12-07 10:43:54 (GMT) |
---|---|---|
committer | Tony Theodore <tonyt@logyst.com> | 2010-12-07 10:43:54 (GMT) |
commit | bc3b548ff43c4a859413b2ae1e3168d6b7651ee8 (patch) | |
tree | e5346db0783f3413aa48c8d416e6f7321e815da7 /src/binutils-1-gas-memmove.patch | |
parent | 286edc128d8a1cba5476db96c04c3201f288eb94 (diff) | |
download | mxe-bc3b548ff43c4a859413b2ae1e3168d6b7651ee8.zip mxe-bc3b548ff43c4a859413b2ae1e3168d6b7651ee8.tar.gz mxe-bc3b548ff43c4a859413b2ae1e3168d6b7651ee8.tar.bz2 |
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
Diffstat (limited to 'src/binutils-1-gas-memmove.patch')
-rw-r--r-- | src/binutils-1-gas-memmove.patch | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/binutils-1-gas-memmove.patch b/src/binutils-1-gas-memmove.patch new file mode 100644 index 0000000..ac6e7b8 --- /dev/null +++ b/src/binutils-1-gas-memmove.patch @@ -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 |