PATCH: allocate namecopy on heap, not stack

Daniel Jacobowitz drow@false.org
Fri Apr 29 21:39:00 GMT 2005


On Fri, Apr 29, 2005 at 04:35:35PM -0500, Jim Blandy wrote:
> 
> Committed as obvious.
> 
> 2005-04-28  Jim Blandy  <jimb@redhat.com>
> 
> 	* parse.c (namecopy): Change allocation conventions.
> 	(namecopy_size): New variable.
> 	(copy_name): Allocate namecopy using xrealloc, instead of assuming
> 	it has adequate space allocated to it.
> 	(parse_exp_1): Don't try to allocate space for namecopy here.

What prompted ths change?  Even "obvious" patches deserve an
explanation.

-- 
Daniel Jacobowitz
CodeSourcery, LLC



More information about the Gdb-patches mailing list