This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: Dangling pointer in ICF from c_str method.
Richard Guenther <rguenther@suse.de> writes:
> 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.
I applied Sri's patch to binutils 2.21 branch.
Ian