bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug binutils/11983] libbfd reuses pointer passed to bfd_openr


From: nickc at redhat dot com
Subject: [Bug binutils/11983] libbfd reuses pointer passed to bfd_openr
Date: Fri, 03 Jan 2014 08:46:27 +0000

http://sourceware.org/bugzilla/show_bug.cgi?id=11983

--- Comment #11 from Nick Clifton <nickc at redhat dot com> ---
Hi Tom,

> On further reflection I think the patch as applied will
> cause gdb crashes.  Due to the historical oddity of how
> the BFD's filename was handled, gdb chose to go its own
> route and reallocate the filename on the BFD's objalloc.

Hang on - are you saying that GDB alters the contents of the filename 
field inside the BFD structure ?  If so, then surely the correct thing 
to do now is to remove that piece of code from GDB.


> Also IIRC from when I looked into this, some of the binutils
> also play games with the filename.  I think a fuller audit
> is needed.

I ran as many checks as I could and visually inspected all of the code. 
  I think that I found everywhere that the filename is touched.  At 
least inside the binutils that is.

Cheers
   Nick

-- 
You are receiving this mail because:
You are on the CC list for the bug.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]