Author: pfg Date: Fri Dec 26 03:03:41 2014 New Revision: 276228 URL: https://svnweb.freebsd.org/changeset/base/276228
Log: gas: use memmove instead of bogus memcpy. partial_where points into the buffer that begins with buffer_start so we need to use memmove() to handle the overlap. Sourceware-PR 11456. Obtained from: OpenBSD (CVS rev. 1.2) MFC after: 3 days Modified: head/contrib/binutils/gas/input-scrub.c Modified: head/contrib/binutils/gas/input-scrub.c ============================================================================== --- head/contrib/binutils/gas/input-scrub.c Fri Dec 26 01:48:44 2014 (r276227) +++ head/contrib/binutils/gas/input-scrub.c Fri Dec 26 03:03:41 2014 (r276228) @@ -335,7 +335,7 @@ input_scrub_next_buffer (char **bufp) if (partial_size) { - memcpy (buffer_start + BEFORE_SIZE, partial_where, + memmove (buffer_start + BEFORE_SIZE, partial_where, (unsigned int) partial_size); memcpy (buffer_start + BEFORE_SIZE, save_source, AFTER_SIZE); } _______________________________________________ svn-src-head@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"