From: Elena Zannoni <ezannoni@cygnus.com>
To: Michael Snyder <msnyder@cygnus.com>
Cc: gdb-patches@sources.redhat.com
Subject: Re: [PATCH] symtab.c: make sure alloca is big enough
Date: Wed, 05 Dec 2001 05:59:00 -0000 [thread overview]
Message-ID: <15374.10688.190835.173996@krustylu.cygnus.com> (raw)
In-Reply-To: <15374.9943.330817.609015@krustylu.cygnus.com>
Elena Zannoni writes:
> Michael Snyder writes:
> > 2001-12-03 Michael Snyder <msnyder@redhat.com>
> >
> > * symtab.c (search_symbols): Make sure alloca size is big enough.
>
> Michael,
> have you checked this in? If not please do.
>
> Where would this problem manifest itself?
> Some testsuite cases?
>
> Thanks
> Elena
>
>
Never mind, I see this is already in.
Elena
> >
> > Index: symtab.c
> > ===================================================================
> > RCS file: /cvs/src/src/gdb/symtab.c,v
> > retrieving revision 1.48
> > diff -c -3 -p -r1.48 symtab.c
> > *** symtab.c 2001/11/13 16:42:50 1.48
> > --- symtab.c 2001/12/03 19:28:26
> > *************** search_symbols (char *regexp, namespace_
> > *** 2422,2428 ****
> > /* If wrong number of spaces, fix it. */
> > if (fix >= 0)
> > {
> > ! char *tmp = (char *) alloca (strlen (regexp) + fix);
> > sprintf (tmp, "operator%.*s%s", fix, " ", opname);
> > regexp = tmp;
> > }
> > --- 2422,2428 ----
> > /* If wrong number of spaces, fix it. */
> > if (fix >= 0)
> > {
> > ! char *tmp = (char *) alloca (8 + fix + strlen (opname) + 1);
> > sprintf (tmp, "operator%.*s%s", fix, " ", opname);
> > regexp = tmp;
> > }
next prev parent reply other threads:[~2001-12-05 13:59 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-12-03 11:31 Michael Snyder
2001-12-05 5:47 ` Elena Zannoni
2001-12-05 5:59 ` Elena Zannoni [this message]
2001-12-05 12:05 ` Michael Snyder
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=15374.10688.190835.173996@krustylu.cygnus.com \
--to=ezannoni@cygnus.com \
--cc=gdb-patches@sources.redhat.com \
--cc=msnyder@cygnus.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox