diff options
author | Alan Modra <amodra@gmail.com> | 2021-05-12 15:11:43 +0930 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2021-05-12 15:41:10 +0930 |
commit | 55b26492bbd05637f24b9b70a507e842e466b723 (patch) | |
tree | 2941b78c943f601f7b0b23b22fb9d572bfe886f6 /binutils/ChangeLog | |
parent | 5ab3907543816d62a8dfd0f7f342ae66814bb0eb (diff) | |
download | gdb-55b26492bbd05637f24b9b70a507e842e466b723.zip gdb-55b26492bbd05637f24b9b70a507e842e466b723.tar.gz gdb-55b26492bbd05637f24b9b70a507e842e466b723.tar.bz2 |
PR27853, Infinite loop in dwarf.c
Not quite infinite but much longer than it need be. The problem is
triggered by read_and_display_attr_value incrementing "data" past
"end". read_and_display_attr_value shouldn't do that, but be
defensive.
PR 27853
* dwarf.c (display_formatted_table): Test for data >= end rather
than data == end.
(process_extended_line_op): Likewise.
(display_debug_lines_raw): Likewise.
(display_debug_lines_decoded): Likewise.
Diffstat (limited to 'binutils/ChangeLog')
-rw-r--r-- | binutils/ChangeLog | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog index 9e0611e..be50b31 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,5 +1,14 @@ 2021-05-12 Alan Modra <amodra@gmail.com> + PR 27853 + * dwarf.c (display_formatted_table): Test for data >= end rather + than data == end. + (process_extended_line_op): Likewise. + (display_debug_lines_raw): Likewise. + (display_debug_lines_decoded): Likewise. + +2021-05-12 Alan Modra <amodra@gmail.com> + PR 27849 * dwarf.c (fetch_indexed_string): Correct length sanity checks. Sanity check section size for version and padding too. Correct |