This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFA] Fix gdb/15827 (crash w/corrupt DWARF)
- From: Keith Seitz <keiths at redhat dot com>
- To: "gdb-patches at sourceware dot org ml" <gdb-patches at sourceware dot org>
- Date: Wed, 16 Apr 2014 14:50:39 -0700
- Subject: Re: [RFA] Fix gdb/15827 (crash w/corrupt DWARF)
- Authentication-results: sourceware.org; auth=none
- References: <532C6D4D dot 2050705 at redhat dot com> <20140321171453 dot GJ4282 at adacore dot com> <532C7624 dot 4080704 at redhat dot com> <20140321175449 dot GL4282 at adacore dot com>
On 03/21/2014 10:54 AM, Joel Brobecker wrote:
ChangeLog
2014-03-20 Keith Seitz <keiths@redhat.com>
PR gdb/15827
* dwarf2read.c (skip_one_die): Check that all relative-offset
sibling DIEs fall within range of the current reader's buffer.
(read_partial_die): Likewise.
testsuite/ChangeLog
2014-03-20 Keith Seitz <keiths@redhat.com>
PR gdb/15827
* gdb.dwarf2/corrupt.c: New file.
* gdb.dwarf2/corrupt.exp: New file.
FAOD, this version looks good to me.
I don't know why I didn't see this response, but, well, I didn't.
Sorry about the delay -- I've now pushed this patch in.
Thank you for the review.
Keith