This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB 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]

Re: dbxread.c warning fix


On Thu, May 15, 2008 at 10:23:52AM +0930, Alan Modra wrote:
> Some recent versions of gcc warn that passing nlist to set_namestring
> results in uninitialised memory access.  The warning is correct since
> n_other isn't initialised and the whole struct is passed by copying to
> set_namestring.  This belts and braces patch corrects
> INTERNALIZE_SYMBOL to init n_other, and changes set_namestring to take
> a pointer arg.  OK to apply?
> 
> 	* dbxread.c: Formatting.
> 	(INTERNALIZE_SYMBOL): Init n_other.
> 	(set_namestring): Take pointer to nlist arg rather than struct
> 	copy.  Update all callers.

OK, thanks.

-- 
Daniel Jacobowitz
CodeSourcery


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]