This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [PATCH] Add support for tracking/evaluating dwarf2 location expressions
- To: Daniel Berlin <dberlin at redhat dot com>
- Subject: Re: [PATCH] Add support for tracking/evaluating dwarf2 location expressions
- From: Andrew Cagney <ac131313 at cygnus dot com>
- Date: Fri, 06 Apr 2001 14:53:00 -0400
- Cc: gdb-patches at sources dot redhat dot com
- References: <Pine.LNX.4.33.0103301400270.24037-100000@www.cgsoftware.com> <3AC51885.30AF5EBE@cygnus.com> <m23dbu8x93.fsf@dynamic-addr-83-177.resnet.rochester.edu>
> > value_ptr stack[64];
> > Is there a constant for this? A quick glance at decode_locdesc() and it
> > has the same hardwired constant.
> Nobody has ever produced location expressions that need more.
The problem typically isn't with what people are doing intentionally but
rather unintentionally. The code opens the way for an input file to
cause gdb to overflow a buffer and trash its stack.
Since we're trying to lessen the likelyhood of GDB corrupting its stack
and dumping core, I think the code should include some sort of stack
range check.
Andrew