Dangling pointer in ICF from c_str method.
Richard Guenther
rguenther@suse.de
Thu Feb 3 09:41:00 GMT 2011
On Wed, 2 Feb 2011, Sriraman Tallam wrote:
> Hi,
>
> Doug Kwan found a bug in ICF caused by a dangling pointer from
> using c_str on a temporary string object. I have attached a patch to
> fix it. I suspect this as the cause of bug reported in :
> http://sourceware.org/bugzilla/show_bug.cgi?id=12388. Richard, could
> you please see if this patch fixes the bug as I am unable to reproduce
> it.
It doesn't apply to the 2.21 release for me. I'll pick it up when
2.21.1 is released.
Richard.
More information about the Binutils
mailing list