This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
> On Mon, Jul 23, 2007 at 05:58:41PM -0700, msnyder@sonic.net wrote: >> Flagged by Coverity. If we don't set the pointer to NULL after calling >> bfd_stringtab_free, it may get called twice, in which case it will >> dereference a freed pointer. >> >> Unlikely perhaps, but possible. > > The same goes for all the other buffers. The problem was introduced > with Joseph's 2007-06-29 attribute patch, specifically > "goto error_return" on a bfd_malloc failure. We should just return > false. Patch to do so preapproved. Done, as attached. Thanks.
Attachment:
false.txt
Description: Text document
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |