diff options
author | Alan Modra <amodra@gmail.com> | 2021-07-03 09:38:40 +0930 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2021-07-05 20:04:21 +0930 |
commit | 40e1d303cedca7d67f6219686f06b9750659beab (patch) | |
tree | 416c08ac006b675ef6da56119163e7100e7a1ed0 /binutils/ChangeLog | |
parent | 74ace054855321bc5271dd7b354131cd0b71333a (diff) | |
download | gdb-40e1d303cedca7d67f6219686f06b9750659beab.zip gdb-40e1d303cedca7d67f6219686f06b9750659beab.tar.gz gdb-40e1d303cedca7d67f6219686f06b9750659beab.tar.bz2 |
PR28047, readelf crash due to assertion failure
DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4, DW_FORM_ref1, and
DW_FORM_ref_udata are all supposed to be within the containing unit.
PR 28047
* dwarf.c (get_type_abbrev_from_form): Add cu_end parameter.
Check DW_FORM_ref1 etc. arg against cu_end rather than end of
section. Adjust all callers.
Diffstat (limited to 'binutils/ChangeLog')
-rw-r--r-- | binutils/ChangeLog | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog index 9efa39e..77b7ac7 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,3 +1,10 @@ +2021-07-05 Alan Modra <amodra@gmail.com> + + PR 28047 + * dwarf.c (get_type_abbrev_from_form): Add cu_end parameter. + Check DW_FORM_ref1 etc. arg against cu_end rather than end of + section. Adjust all callers. + 2021-07-03 Nick Clifton <nickc@redhat.com> * configure: Regenerate. |