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.
- From: Richard Guenther <rguenther at suse dot de>
- To: Sriraman Tallam <tmsriram at google dot com>
- Cc: binutils <binutils at sourceware dot org>, Doug Kwan (?振德) <dougkwan at google dot com>, Ian Lance Taylor <iant at google dot com>
- Date: Thu, 3 Feb 2011 10:41:13 +0100 (CET)
- Subject: Re: Dangling pointer in ICF from c_str method.
- References: <AANLkTimrzaPG-i0UPpdtYy9Hk8f=8PzZ1+GFxsmTvQ17@mail.gmail.com>
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.