aboutsummaryrefslogtreecommitdiff
path: root/bfd/lynx-core.c
diff options
context:
space:
mode:
authorTom Tromey <tromey@adacore.com>2019-08-14 14:01:57 -0600
committerTom Tromey <tromey@adacore.com>2019-08-15 07:37:31 -0600
commit05192282ca19f8f5c201f630caed68b1632e2619 (patch)
tree94c70d92e366e3d1aed20206a153d8be1e77d1f7 /bfd/lynx-core.c
parent6485977b899b2780c575ff1d34ccfa7fa950e492 (diff)
downloadgdb-05192282ca19f8f5c201f630caed68b1632e2619.zip
gdb-05192282ca19f8f5c201f630caed68b1632e2619.tar.gz
gdb-05192282ca19f8f5c201f630caed68b1632e2619.tar.bz2
Fix CU overrun in scan_unit_for_symbols
A customer program had a DWARF CU that consisted of just a CU DIE, without any children. In this situation, scan_unit_for_symbols will try to read past the end of the current CU, and will take use the first bytes of the next CU as an abbrev, printing an error message. This patch fixes the bug by changing scan_unit_for_symbols to stop at the end of the CU rather than the end of the .debug_info section. bfd/ChangeLog 2019-08-15 Tom Tromey <tromey@adacore.com> * dwarf2.c (scan_unit_for_symbols): Check for end of CU, not end of section.
Diffstat (limited to 'bfd/lynx-core.c')
0 files changed, 0 insertions, 0 deletions