Bug 11456

Summary: stabs related buffer bug
Product: binutils Reporter: H.J. Lu <hjl.tools>
Component: gasAssignee: unassigned
Status: RESOLVED FIXED    
Severity: normal CC: bug-binutils
Priority: P2    
Version: 2.21   
Target Milestone: ---   
Host: Target:
Build: Last reconfirmed:
Attachments: A testcase

Description H.J. Lu 2010-03-30 21:09:08 UTC
assembler sometimes fails to process stabs
Comment 1 H.J. Lu 2010-03-30 21:10:00 UTC
Created attachment 4689 [details]
A testcase

[hjl@gnu-6 opcodes]$ gcc -c foo.s
foo.s: Assembler messages:
foo.s:105: Error: junk at end of line, first unrecognized character is `0'
foo.s:105: Error: junk at end of line, first unrecognized character is `"'
[hjl@gnu-6 opcodes]$
Comment 2 H.J. Lu 2010-03-30 22:19:44 UTC
It may not be an assembler bug.
Comment 3 Sourceware Commits 2010-03-30 23:20:41 UTC
Subject: Bug 11456

CVSROOT:	/cvs/src
Module name:	src
Changes by:	hjl@sourceware.org	2010-03-30 23:20:25

Modified files:
	gas            : ChangeLog input-scrub.c 

Log message:
	Use memmove to copy overlap memory.
	
	2010-03-30  H.J. Lu  <hongjiu.lu@intel.com>
	
	PR gas/11456
	* input-scrub.c (input_scrub_next_buffer): Use memmove instead
	of memcpy to copy overlap memory.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gas/ChangeLog.diff?cvsroot=src&r1=1.4122&r2=1.4123
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gas/input-scrub.c.diff?cvsroot=src&r1=1.22&r2=1.23

Comment 4 H.J. Lu 2010-03-30 23:21:53 UTC
Fixed.