]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - binutils/objdump.c
PR29647, objdump -S looping
authorAlan Modra <amodra@gmail.com>
Wed, 5 Oct 2022 00:55:26 +0000 (11:25 +1030)
committerAlan Modra <amodra@gmail.com>
Wed, 5 Oct 2022 04:23:41 +0000 (14:53 +1030)
commit306253b2cfa297c1eb0d30852bdcf96375db24e2
tree6c66f35fb031abbe46e57c4668f8df6eddcdc42f
parent011a13613403c42717c623b0c5fc1e69de9f65b5
PR29647, objdump -S looping

Fuzzed input with this in .debug_line
  [0x0000003b]  Special opcode 115: advance Address by 8 to 0x401180 and Line by -2 to -1

PR 29647
* objdump.c (print_line): Don't decrement line number here..
(dump_lines): ..do so here instead, ensuring loop terminates.
binutils/objdump.c