This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: PATCH: allocate namecopy on heap, not stack
- From: Daniel Jacobowitz <drow at false dot org>
- To: Jim Blandy <jimb at redhat dot com>
- Cc: gdb-patches at sources dot redhat dot com
- Date: Fri, 29 Apr 2005 17:39:22 -0400
- Subject: Re: PATCH: allocate namecopy on heap, not stack
- References: <vt264y5feqg.fsf@zenia.home>
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