PR22169, heap-based buffer overflow in read_1_byte
authorAlan Modra <amodra@gmail.com>
Sun, 24 Sep 2017 05:06:16 +0000 (14:36 +0930)
committerAlan Modra <amodra@gmail.com>
Sun, 24 Sep 2017 06:45:14 +0000 (16:15 +0930)
commit515f23e63c0074ab531bc954f84ca40c6281a724
tree266d9172e9797c3b818c1edba524a320d1382178
parent0d76029f92182c3682d8be2c833d45bc9a2068fe
PR22169, heap-based buffer overflow in read_1_byte

The .debug_line header length field doesn't include the length field
itself, ie. it's the size of the rest of .debug_line.

PR 22169
* dwarf2.c (decode_line_info): Correct .debug_line unit_length check.
bfd/ChangeLog
bfd/dwarf2.c