aboutsummaryrefslogtreecommitdiff
path: root/bfd/ChangeLog
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2017-09-26 21:47:24 +0930
committerAlan Modra <amodra@gmail.com>2017-09-26 22:12:40 +0930
commit1b86808a86077722ee4f42ff97f836b12420bb2a (patch)
tree62f8285b0a6a9b19614741d136da2038311ff8f4 /bfd/ChangeLog
parent5c1c468d0eddd0fda1ec8c5f33888657f94e3266 (diff)
downloadgdb-1b86808a86077722ee4f42ff97f836b12420bb2a.zip
gdb-1b86808a86077722ee4f42ff97f836b12420bb2a.tar.gz
gdb-1b86808a86077722ee4f42ff97f836b12420bb2a.tar.bz2
PR22209, invalid memory read in find_abstract_instance_name
This patch adds bounds checking for DW_FORM_ref_addr die refs, and calculates them relative to the first .debug_info section. See the big comment for why calculating relative to the current .debug_info section was wrong for relocatable object files. PR 22209 * dwarf2.c (struct comp_unit): Delete sec_info_ptr field. (find_abstract_instance_name): Calculate DW_FORM_ref_addr relative to stash->info_ptr_memory, and check die_ref is within that memory. Set info_ptr_end correctly when another CU is refd. Check die_ref for DW_FORM_ref4 etc. is within CU.
Diffstat (limited to 'bfd/ChangeLog')
-rw-r--r--bfd/ChangeLog9
1 files changed, 9 insertions, 0 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 78f95d1..b6f7381 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,5 +1,14 @@
2017-09-26 Alan Modra <amodra@gmail.com>
+ PR 22209
+ * dwarf2.c (struct comp_unit): Delete sec_info_ptr field.
+ (find_abstract_instance_name): Calculate DW_FORM_ref_addr relative
+ to stash->info_ptr_memory, and check die_ref is within that memory.
+ Set info_ptr_end correctly when another CU is refd. Check die_ref
+ for DW_FORM_ref4 etc. is within CU.
+
+2017-09-26 Alan Modra <amodra@gmail.com>
+
PR 22205
* dwarf2.c (concat_filename): Return "<unknown>" on NULL filename.
(read_formatted_entries): Init "fe".