PR27853, Infinite loop in dwarf.c
authorAlan Modra <amodra@gmail.com>
Wed, 12 May 2021 05:41:43 +0000 (15:11 +0930)
committerAlan Modra <amodra@gmail.com>
Wed, 12 May 2021 06:11:10 +0000 (15:41 +0930)
commit55b26492bbd05637f24b9b70a507e842e466b723
tree2941b78c943f601f7b0b23b22fb9d572bfe886f6
parent5ab3907543816d62a8dfd0f7f342ae66814bb0eb
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.
binutils/ChangeLog
binutils/dwarf.c
This page took 0.02342 seconds and 4 git commands to generate.