PR gdb/15827
authorKeith Seitz <keiths@redhat.com>
Wed, 16 Apr 2014 21:39:10 +0000 (14:39 -0700)
committerKeith Seitz <keiths@redhat.com>
Wed, 16 Apr 2014 21:39:10 +0000 (14:39 -0700)
commit22869d73e127511e177a6bd855f9b5dbe22b9eca
tree3bc4ba2b15742dd220b1419b33acc9a0e8d00bf6
parentc4f87ca6dbe041e2a331e5054a76c9134f29d545
PR gdb/15827

Install some sanity checks that sibling DIE offsets are not beyond the
defined limits of the DWARF input buffer in read_partial_die and skip_one_die.

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.

2014-03-20  Keith Seitz  <keiths@redhat.com>

PR gdb/15827
* gdb.dwarf2/corrupt.c: New file.
* gdb.dwarf2/corrupt.exp: New file.
gdb/ChangeLog
gdb/dwarf2read.c
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.dwarf2/corrupt.c [new file with mode: 0644]
gdb/testsuite/gdb.dwarf2/corrupt.exp [new file with mode: 0644]
This page took 0.026311 seconds and 4 git commands to generate.